-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI - Fix double-setting of -SNAPSHOT version qualifier
- Loading branch information
1 parent
f00bdc0
commit 00c127e
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 ) } | ||
} | ||
|
@@ -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 ) } | ||
} | ||
|