Fix isSnapshot

This commit is contained in:
Rob Winch
2022-01-07 10:01:47 -06:00
parent 5be3c10078
commit 8b186e6526
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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