From 6e55c891dd6b58b4cb2669821ce1f7d3b16b4bd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Berg=20Glasius?= Date: Wed, 16 Oct 2024 14:43:17 +0200 Subject: [PATCH] Missing target for bumping snapshot version --- build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.gradle b/build.gradle index 7b1f07c..14aea14 100644 --- a/build.gradle +++ b/build.gradle @@ -148,4 +148,14 @@ nexusPublishing { stagingProfileId = ossStagingProfileId } } +} + +tasks.register('snapshotVersion') { + doLast { + if (isReleaseVersion) { + ant.propertyfile(file: "gradle.properties") { + entry(key: "version", value: "${project.version}-SNAPSHOT") + } + } + } } \ No newline at end of file