Skip to content
Snippets Groups Projects
Commit 13015c3f authored by dgelessus's avatar dgelessus
Browse files

Use Sonatype Snapshots repo only when the current version is a snapshot

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