Backport upgrade to Gradle 8.10.1

Cherry-pick commits d756bf4e86, 083ac67d13 and 162c929a80 to
upgrade to Gradle 8.10.1.

Closes gh-42433
This commit is contained in:
Phillip Webb
2024-09-24 11:30:14 -07:00
parent 23ddad1ebd
commit eafe61c4ca
23 changed files with 129 additions and 104 deletions

View File

@@ -67,28 +67,33 @@ dependencies {
def testCaffeine = tasks.register("testCaffeine", Test) {
description = "Runs the tests against Caffeine"
classpath = sourceSets.test.runtimeClasspath + configurations.caffeine
testClassesDirs = testing.suites.test.sources.output.classesDirs
}
def testCouchbase = tasks.register("testCouchbase", Test) {
description = "Runs the tests against Couchbase"
classpath = sourceSets.test.runtimeClasspath + configurations.couchbase
testClassesDirs = testing.suites.test.sources.output.classesDirs
}
def testEhcache = tasks.register("testEhcache", Test) {
description = "Runs the tests against Ehcache"
classpath = sourceSets.test.runtimeClasspath + configurations.ehcache
testClassesDirs = testing.suites.test.sources.output.classesDirs
systemProperties = ["spring.cache.jcache.config" : "classpath:ehcache3.xml"]
}
def testHazelcast = tasks.register("testHazelcast", Test) {
description = "Runs the tests against Hazelcast"
classpath = sourceSets.test.runtimeClasspath + configurations.hazelcast
testClassesDirs = testing.suites.test.sources.output.classesDirs
}
def testInfinispan = tasks.register("testInfinispan", Test) {
enabled = (toolchain.javaVersion == null || toolchain.javaVersion.asInt() < 23)
description = "Runs the tests against Infinispan"
classpath = sourceSets.test.runtimeClasspath + configurations.infinispan
testClassesDirs = testing.suites.test.sources.output.classesDirs
systemProperties = ["spring.cache.jcache.config" : "classpath:infinispan.xml"]
}