Skip to content

Commit

Permalink
Allow to test on modern Java
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarg committed Aug 11, 2024
1 parent 7651853 commit 6f684b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ dependencies {
.forEach { testImplementation(it) }
}

tasks.withType<JavaCompile> {
options.compilerArgs.addAll(listOf("--add-exports", "java.base/sun.reflect.annotation=ALL-UNNAMED"))
}
tasks.withType<Test> {
jvmArgs = listOf("--add-exports", "java.base/sun.reflect.annotation=ALL-UNNAMED")
useTestNG()
}

Expand Down

0 comments on commit 6f684b4

Please sign in to comment.