Skip to content

Commit 2b84858

Browse files
committed
Build uses -SNAPSHOT instead of BUILD-SNAPSHOT
1 parent 06d01e5 commit 2b84858

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

gradle/artifactory.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apply plugin: "com.jfrog.artifactory"
22

3-
def isSnapshot = version?.matches(/^.*[.-]BUILD-SNAPSHOT$/)
3+
def isSnapshot = version?.endsWith("-SNAPSHOT")
44

55
artifactory {
66
contextUrl = 'https://repo.spring.io'

gradle/deploy-artifacts.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
def isSnapshot = version?.matches(/^.*[.-]BUILD-SNAPSHOT$/)
1+
def isSnapshot = version?.endsWith("-SNAPSHOT")
22

33
task deployArtifacts {
44
group = 'Deploy tasks'

gradle/finalize-deploy.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
def isSnapshot = version?.matches(/^.*[.-]BUILD-SNAPSHOT$/)
1+
def isSnapshot = version?.endsWith("-SNAPSHOT")
22
def isRelease = !isSnapshot
33

44
task finalizeDeployArtifacts {

gradle/ossrh.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
def isSnapshot = version?.matches(/^.*[.-]BUILD-SNAPSHOT$/)
1+
def isSnapshot = version?.endsWith("-SNAPSHOT")
22
def isRelease = !isSnapshot
33

44
if(project.hasProperty("signing.keyId") && isRelease) {

0 commit comments

Comments
 (0)