Skip to content

Commit 0aa6db8

Browse files
committed
Fix Java home setting for Java 11
Previously, the build was using the incorrect Java home directory for Java 11.
1 parent f7cb46c commit 0aa6db8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/JavacBootClasspathPlugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ object JavacBootClasspathPlugin extends AutoPlugin {
3232
private def toolsJar: File = javaHomeDirectory / "lib" / "tools.jar"
3333
private def javaHomeDirectory: File = {
3434
val home = file(System.getProperty("java.home"))
35-
if (Properties.isJavaAtLeast("8"))
35+
if (Properties.isJavaAtLeast("8") && !Properties.isJavaAtLeast("11"))
3636
home.getParentFile
3737
else
3838
home

0 commit comments

Comments
 (0)