Disable Infinispan tests on Java 23

Infinispan 14 does not work on Java 23, an upgrade to 15 is required.
This commit therefore disables those tests when running against a Java
version higher than 22.

Unfortunately, the version of JUnit that we use has no value for Java
23, so we have to use OTHER for that purpose.
This commit is contained in:
Stéphane Nicoll
2024-08-06 10:35:03 +02:00
parent 9817201833
commit a6567c7d47
2 changed files with 10 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ def testHazelcast = tasks.register("testHazelcast", Test) {
}
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
systemProperties = ["spring.cache.jcache.config" : "classpath:infinispan.xml"]