Fork java compiler to ensure forkOptions are used

This commit is contained in:
Ilya Gorbunov
2017-10-14 02:29:18 +03:00
parent 93efc51843
commit 341edc3f86
+1
View File
@@ -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)
}