File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : " com.jfrog.artifactory"
2
2
3
- def isSnapshot = version?. matches( / ^.*[.-]BUILD- SNAPSHOT$ / )
3
+ def isSnapshot = version?. endsWith( " - SNAPSHOT" )
4
4
5
5
artifactory {
6
6
contextUrl = ' https://repo.spring.io'
Original file line number Diff line number Diff line change 1
- def isSnapshot = version?. matches( / ^.*[.-]BUILD- SNAPSHOT$ / )
1
+ def isSnapshot = version?. endsWith( " - SNAPSHOT" )
2
2
3
3
task deployArtifacts {
4
4
group = ' Deploy tasks'
Original file line number Diff line number Diff line change 1
- def isSnapshot = version?. matches( / ^.*[.-]BUILD- SNAPSHOT$ / )
1
+ def isSnapshot = version?. endsWith( " - SNAPSHOT" )
2
2
def isRelease = ! isSnapshot
3
3
4
4
task finalizeDeployArtifacts {
Original file line number Diff line number Diff line change 1
- def isSnapshot = version?. matches( / ^.*[.-]BUILD- SNAPSHOT$ / )
1
+ def isSnapshot = version?. endsWith( " - SNAPSHOT" )
2
2
def isRelease = ! isSnapshot
3
3
4
4
if (project. hasProperty(" signing.keyId" ) && isRelease) {
You can’t perform that action at this time.
0 commit comments