Skip to content

Commit

Permalink
Build: Prevent snapshot dependencies when building release versions
Browse files Browse the repository at this point in the history
  • Loading branch information
weisJ committed Aug 1, 2021
1 parent f20ad1d commit 5d4c691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ allprojects {
if (enableMavenLocal) {
mavenLocal()
}
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
if (!isRelease) {
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") }
}
mavenCentral()
}
Expand Down

0 comments on commit 5d4c691

Please sign in to comment.