Fork java compiler to ensure forkOptions are used
This commit is contained in:
@@ -478,6 +478,7 @@ fun jdkPath(version: String): String = jdkPathIfFound(version)
|
||||
fun Project.configureJvmProject(javaHome: String, javaVersion: String) {
|
||||
|
||||
tasks.withType<JavaCompile> {
|
||||
options.isFork = true
|
||||
options.forkOptions.javaHome = file(javaHome)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user