Skip to content

Commit fb0a21a

Browse files
authored
Merge pull request #89 from olafurpg/java-11
Fix Java home setting for Java 11
2 parents f7cb46c + 0aa6db8 commit fb0a21a

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)