Fix copy-n-paste error in custom_java_home.gradle script

See gh-24474
This commit is contained in:
Sam Brannen
2020-02-12 23:08:42 +01:00
parent a4179b4795
commit d481b81b7e

View File

@@ -49,7 +49,7 @@ if (customJavaHome) {
tasks.withType(GroovyCompile) {
logger.info("Java home for " + it.name + " task in " + project.name + ": " + customJavaHomeDir)
options.forkOptions.executable = customJavaHomeDir
options.forkOptions.javaHome = customJavaHomeDir
inputs.property("customJavaHome", customJavaHome)
if (customJavaSourceVersion) {
options.compilerArgs += [ "--release", customJavaSourceVersion]