Skip to content
Snippets Groups Projects
Commit 265208dc authored by dgelessus's avatar dgelessus
Browse files

Add Sonatype snapshots repo only when building snapshot versions

parent a313f3f3
Branches
Tags
No related merge requests found
...@@ -14,9 +14,11 @@ project.targetCompatibility = '1.8' ...@@ -14,9 +14,11 @@ project.targetCompatibility = '1.8'
repositories { repositories {
mavenCentral() mavenCentral()
maven { if (isSnapshot) {
name "sonatype snapshots" maven {
url "https://oss.sonatype.org/content/repositories/snapshots" name "sonatype snapshots"
url "https://oss.sonatype.org/content/repositories/snapshots"
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment