Build: Do not cache snapshots

Gradle marks dependencies with a version containing "SNAPSHOT" as
"changing", and caches them for 24 hours by default. This updates the
configuration to not cache them at all.

Original commit: elastic/x-pack-elasticsearch@ac95e30a96
This commit is contained in:
Ryan Ernst 2015-11-16 13:04:46 -08:00
parent 891d348dd1
commit fc1d043c0d
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,10 @@ allprojects {
subprojects {
group = 'org.elasticsearch'
version = org.elasticsearch.gradle.VersionProperties.elasticsearch
configurations.all {
resolutionStrategy.cacheChangingModulesFor(0, 'seconds')
}
}
if (hasProperty('projectsPrefix') == false) {