Skip to content

Commit

Permalink
build: Fix missing "sun.boot.class.path" prop
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand committed Feb 2, 2020
1 parent 5436f2a commit 7a2fc58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ val core = project.disablePlugins(BintrayPlugin).settings(
apiMappings ++= {
// WORKAROUND https://github.com/scala/bug/issues/9311
// from https://stackoverflow.com/a/31322970/463761
sys.props("sun.boot.class.path")
.split(java.io.File.pathSeparator)
sys.props.get("sun.boot.class.path").toList
.flatMap(_.split(java.io.File.pathSeparator))
.collectFirst { case str if str.endsWith(java.io.File.separator + "rt.jar") =>
file(str) -> url("http://docs.oracle.com/javase/8/docs/api/index.html")
}
Expand Down

0 comments on commit 7a2fc58

Please sign in to comment.