Skip to content

Commit 7a2fc58

Browse files
committed
build: Fix missing "sun.boot.class.path" prop
1 parent 5436f2a commit 7a2fc58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ val core = project.disablePlugins(BintrayPlugin).settings(
3737
apiMappings ++= {
3838
// WORKAROUND https://github.com/scala/bug/issues/9311
3939
// from https://stackoverflow.com/a/31322970/463761
40-
sys.props("sun.boot.class.path")
41-
.split(java.io.File.pathSeparator)
40+
sys.props.get("sun.boot.class.path").toList
41+
.flatMap(_.split(java.io.File.pathSeparator))
4242
.collectFirst { case str if str.endsWith(java.io.File.separator + "rt.jar") =>
4343
file(str) -> url("http://docs.oracle.com/javase/8/docs/api/index.html")
4444
}

0 commit comments

Comments
 (0)