Build uses -SNAPSHOT instead of BUILD-SNAPSHOT

This commit is contained in:
Rob Winch
2022-01-07 09:25:50 -06:00
parent a065a1539c
commit 5be3c10078
4 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
apply plugin: "com.jfrog.artifactory"
def isSnapshot = version?.matches(/^.*[.-]BUILD-SNAPSHOT$/)
def isSnapshot = version?.matches(/^.*[.-]-SNAPSHOT$/)
artifactory {
contextUrl = 'https://repo.spring.io'

View File

@@ -1,4 +1,4 @@
def isSnapshot = version?.matches(/^.*[.-]BUILD-SNAPSHOT$/)
def isSnapshot = version?.matches(/^.*[.-]-SNAPSHOT$/)
task deployArtifacts {
group = 'Deploy tasks'

View File

@@ -1,4 +1,4 @@
def isSnapshot = version?.matches(/^.*[.-]BUILD-SNAPSHOT$/)
def isSnapshot = version?.matches(/^.*[.-]-SNAPSHOT$/)
def isRelease = !isSnapshot
task finalizeDeployArtifacts {

View File

@@ -1,4 +1,4 @@
def isSnapshot = version?.matches(/^.*[.-]BUILD-SNAPSHOT$/)
def isSnapshot = version?.matches(/^.*[.-]-SNAPSHOT$/)
def isRelease = !isSnapshot
if(project.hasProperty("signing.keyId") && isRelease) {