Skip to content

Commit 7616b69

Browse files
committed
remove obsolete javac workaround
1 parent 0736e12 commit 7616b69

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(
@@ -48,8 +38,6 @@ lazy val interfaces = project
4838
"-Werror"
4939
),
5040
(Compile / doc / javacOptions) := List("-Xdoclint:none"),
51-
(Compile / javaHome) := inferJavaHome(),
52-
(Compile / doc / javaHome) := inferJavaHome(),
5341
libraryDependencies += coursierInterfaces,
5442
moduleName := "scalafix-interfaces",
5543
crossPaths := false,

0 commit comments

Comments
 (0)