Skip to content

Commit

Permalink
Fix build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaMaciaszek committed Aug 8, 2024
1 parent 9355238 commit 5e0b082
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/spring-cloud-contract-docker/project/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ buildscript {
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
}

dependencies {
Expand Down Expand Up @@ -50,7 +49,9 @@ version = getProp(envVars, "PROJECT_VERSION") ?: '0.0.1-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
if ("${verifierVersion}".contains("SNAPSHOT")) {
maven { url "https://repo.spring.io/snapshot" }
} else if ("${verifierVersion}".contains("M") || "${verifierVersion}".contains("RC")) {
maven { url "https://repo.spring.io/milestone" }
}
}
Expand Down

0 comments on commit 5e0b082

Please sign in to comment.