Fix Gradle dependency caching configuration

See: #1505
This commit is contained in:
Vedran Pavic
2019-09-24 20:42:44 +02:00
parent a6c1d8eb1d
commit 34306fd3a0

View File

@@ -23,21 +23,29 @@ apply plugin: 'io.spring.convention.root'
group = 'org.springframework.session'
description = 'Spring Session'
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, "seconds"
cacheDynamicVersionsFor 0, "seconds"
}
}
subprojects {
apply plugin: 'io.spring.javaformat'
plugins.withType(JavaPlugin) {
sourceCompatibility = JavaVersion.VERSION_1_8
tasks.withType(Test) {
useJUnitPlatform()
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, "seconds"
cacheDynamicVersionsFor 0, "seconds"
}
}
plugins.withType(JavaPlugin) {
sourceCompatibility = JavaVersion.VERSION_1_8
}
plugins.withId('io.spring.dependency-management') {
dependencyManagement {
resolutionStrategy {
cacheChangingModulesFor 0, "seconds"
}
}
}
tasks.withType(Test) {
useJUnitPlatform()
}
}