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(); }