Skip to content

Commit 5e0b082

Browse files
committed
Fix build.gradle
1 parent 9355238 commit 5e0b082

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker/spring-cloud-contract-docker/project/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ buildscript {
66
mavenCentral()
77
maven { url "https://repo.spring.io/snapshot" }
88
maven { url "https://repo.spring.io/milestone" }
9-
}
109
}
1110

1211
dependencies {
@@ -50,7 +49,9 @@ version = getProp(envVars, "PROJECT_VERSION") ?: '0.0.1-SNAPSHOT'
5049
repositories {
5150
mavenLocal()
5251
mavenCentral()
52+
if ("${verifierVersion}".contains("SNAPSHOT")) {
5353
maven { url "https://repo.spring.io/snapshot" }
54+
} else if ("${verifierVersion}".contains("M") || "${verifierVersion}".contains("RC")) {
5455
maven { url "https://repo.spring.io/milestone" }
5556
}
5657
}

0 commit comments

Comments
 (0)