Skip to content

Commit 775f7b5

Browse files
committed
remove obsolete javac workaround
1 parent 61f9800 commit 775f7b5

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

build.sbt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ inThisBuild(
1212
Global / cancelable := true
1313
noPublishAndNoMima
1414

15-
// force javac to fork by setting javaHome to get error messages during compilation,
16-
// see https://github.com/sbt/zinc/issues/520
17-
def inferJavaHome() = {
18-
val home = file(sys.props("java.home"))
19-
val actualHome =
20-
if (System.getProperty("java.version").startsWith("1.8")) home.getParentFile
21-
else home
22-
Some(actualHome)
23-
}
24-
2515
lazy val interfaces = project
2616
.in(file("scalafix-interfaces"))
2717
.settings(
@@ -49,8 +39,6 @@ lazy val interfaces = project
4939
"-Werror"
5040
),
5141
(Compile / doc / javacOptions) := List("-Xdoclint:none"),
52-
(Compile / javaHome) := inferJavaHome(),
53-
(Compile / doc / javaHome) := inferJavaHome(),
5442
libraryDependencies += coursierInterfaces,
5543
moduleName := "scalafix-interfaces",
5644
crossPaths := false,

0 commit comments

Comments
 (0)