File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,7 +135,20 @@ tasks.named("dependencyUpdates").configure {
135135 }
136136}
137137
138- tasks. withType(Test ) {
138+ tasks. withType(Test ). configureEach {
139+ jvmArgs(
140+ " --add-exports" , " jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED" ,
141+ " --add-exports" , " jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED" ,
142+ " --add-exports" , " jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED" ,
143+ " --add-exports" , " jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED" ,
144+ " --add-exports" , " jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED" ,
145+ " --add-exports" , " jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED"
146+ )
147+
148+ javaLauncher. set(javaToolchains. launcherFor {
149+ languageVersion. set(JavaLanguageVersion . of(libs. versions. test. jdk. get()))
150+ })
151+
139152 finalizedBy jacocoTestReport
140153}
141154
Original file line number Diff line number Diff line change 22kotlin = " 1.8.22"
33build-jdk = " 11"
44target-jdk = " 11"
5+ test-jdk = " 17"
56
67junit = " 5.9.3"
78jacoco = " 0.8.7"
You can’t perform that action at this time.
0 commit comments