From 0e910aade1fd3b126954f3cd6a69ab6e837714e1 Mon Sep 17 00:00:00 2001 From: Luke Bemish Date: Thu, 2 Nov 2023 00:54:19 +0000 Subject: [PATCH] Fix suffixed versioning --- build.gradle | 2 +- .../dev/lukebemish/managedversioning/VersionValueSource.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index f3eef4b..fb5a030 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group = 'dev.lukebemish' -version = '1.0.0' +version = '1.0.1' gradlePlugin { plugins { diff --git a/src/main/java/dev/lukebemish/managedversioning/VersionValueSource.java b/src/main/java/dev/lukebemish/managedversioning/VersionValueSource.java index 6d4316d..2cff22a 100644 --- a/src/main/java/dev/lukebemish/managedversioning/VersionValueSource.java +++ b/src/main/java/dev/lukebemish/managedversioning/VersionValueSource.java @@ -58,7 +58,7 @@ public final String obtain() { } } - if (getParameters().getSuffix().isPresent()) { + if (getParameters().getSuffix().isPresent() && !fileVersion.endsWith("-"+getParameters().getSuffix().get())) { version += "-" + getParameters().getSuffix().get(); }