From 6f684b435ac67bbd45b2fe19027d50431a12a3bc Mon Sep 17 00:00:00 2001 From: Markus KARG Date: Sat, 10 Aug 2024 16:14:30 +0000 Subject: [PATCH] Allow to test on modern Java --- build.gradle.kts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 01a8a8ab..0b64ea7b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -77,7 +77,11 @@ dependencies { .forEach { testImplementation(it) } } +tasks.withType { + options.compilerArgs.addAll(listOf("--add-exports", "java.base/sun.reflect.annotation=ALL-UNNAMED")) +} tasks.withType { + jvmArgs = listOf("--add-exports", "java.base/sun.reflect.annotation=ALL-UNNAMED") useTestNG() }