Skip to content

Commit c1843e4

Browse files
committed
Disable ArchUnitTests on JDK 24 and later
1 parent 16ab431 commit c1843e4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

gradle/libs.versions.toml

+3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ ant = { module = "org.apache.ant:ant", version.ref = "ant" }
2424
ant-junit = { module = "org.apache.ant:ant-junit", version.ref = "ant" }
2525
ant-junitlauncher = { module = "org.apache.ant:ant-junitlauncher", version.ref = "ant" }
2626
apiguardian = { module = "org.apiguardian:apiguardian-api", version.ref = "apiguardian" }
27+
28+
# check whether @DisabledForJreRange condition on ArchUnitTests can be updated when updating
2729
archunit = { module = "com.tngtech.archunit:archunit-junit5", version = "1.3.0" }
30+
2831
assertj = { module = "org.assertj:assertj-core", version.ref = "assertj" }
2932
bartholdy = { module = "de.sormuras:bartholdy", version = "0.2.3" }
3033
bndlib = { module = "biz.aQute.bnd:biz.aQute.bndlib", version.ref = "bnd" }

platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/ArchUnitTests.java

+3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@
4141

4242
import org.apiguardian.api.API;
4343
import org.junit.jupiter.api.Order;
44+
import org.junit.jupiter.api.condition.DisabledForJreRange;
45+
import org.junit.jupiter.api.condition.JRE;
4446

47+
@DisabledForJreRange(min = JRE.JAVA_24)
4548
@Order(Integer.MAX_VALUE)
4649
@AnalyzeClasses(locations = ArchUnitTests.AllJars.class)
4750
class ArchUnitTests {

0 commit comments

Comments
 (0)