Skip to content

Commit

Permalink
CI - Fix double-setting of -SNAPSHOT version qualifier
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelborn committed Nov 21, 2024
1 parent f00bdc0 commit 00c127e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ task createModuleStructure(type: Copy) {
// Token Replacements Go Here
filter{ line -> line.replaceAll( '@build.version@', project.version ) }
if( project.branch == "development" ){
filter{ line -> line.replaceAll( '\\[email protected]@', '-SNAPSHOT' ) }
// We already add -snapshot to the project.version variable.
filter{ line -> line.replaceAll( '\\[email protected]@', '' ) }
} else {
filter{ line -> line.replaceAll( '@build.number@', project.buildID ) }
}
Expand All @@ -168,7 +169,8 @@ task createModuleStructure(type: Copy) {
// Token Replacements Go Here
filter{ line -> line.replaceAll( '@build.version@', project.version ) }
if( project.branch == "development" ){
filter{ line -> line.replaceAll( '\\[email protected]@', '-SNAPSHOT' ) }
// We already add -snapshot to the project.version variable.
filter{ line -> line.replaceAll( '\\[email protected]@', '' ) }
} else {
filter{ line -> line.replaceAll( '@build.number@', project.buildID ) }
}
Expand Down

0 comments on commit 00c127e

Please sign in to comment.