Skip to content

Commit

Permalink
Fix suffixed versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Nov 2, 2023
1 parent d991591 commit 0e910aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = 'dev.lukebemish'
version = '1.0.0'
version = '1.0.1'

gradlePlugin {
plugins {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 0e910aa

Please sign in to comment.