Fix isSnapshot
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
def isSnapshot = version?.matches(/^.*[.-]-SNAPSHOT$/)
|
||||
def isSnapshot = version?.endsWith("-SNAPSHOT")
|
||||
|
||||
task deployArtifacts {
|
||||
group = 'Deploy tasks'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
def isSnapshot = version?.matches(/^.*[.-]-SNAPSHOT$/)
|
||||
def isSnapshot = version?.endsWith("-SNAPSHOT")
|
||||
def isRelease = !isSnapshot
|
||||
|
||||
task finalizeDeployArtifacts {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
def isSnapshot = version?.matches(/^.*[.-]-SNAPSHOT$/)
|
||||
def isSnapshot = version?.endsWith("-SNAPSHOT")
|
||||
def isRelease = !isSnapshot
|
||||
|
||||
if(project.hasProperty("signing.keyId") && isRelease) {
|
||||
|
||||
Reference in New Issue
Block a user