Use JDK 8 as JAVA_HOME for kapt tests

* kapt tests launch scripts in a child process relied on JAVA_HOME
* tests fail under JDK 11 due to illegal reflexive access
This commit is contained in:
Bogdan Mukvich
2023-04-25 11:24:00 +02:00
committed by Space Team
parent e7989eecf5
commit b0d964ec8b
+4
View File
@@ -28,4 +28,8 @@ projectTest {
useJUnitPlatform()
workingDir = rootDir
dependsOn(":dist")
val jdkHome = project.getToolchainJdkHomeFor(JdkMajorVersion.JDK_1_8)
doFirst {
environment("JAVA_HOME", jdkHome.get())
}
}