File tree 3 files changed +22
-5
lines changed
3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ addons:
22
22
jdk :
23
23
- openjdk6
24
24
- oraclejdk8
25
+ - oraclejdk9
25
26
26
27
notifications :
27
28
Original file line number Diff line number Diff line change @@ -27,11 +27,27 @@ lazy val xml = crossProject.in(file("."))
27
27
28
28
apiMappings ++= Map (
29
29
scalaInstance.value.libraryJar
30
- -> url(s " http://www.scala-lang.org/api/ ${scalaVersion.value}/ " ),
30
+ -> url(s " http://www.scala-lang.org/api/ ${scalaVersion.value}/ " )
31
+ ) ++ {
31
32
// http://stackoverflow.com/questions/16934488
32
- file(System .getProperty(" sun.boot.class.path" ).split(java.io.File .pathSeparator).filter(_.endsWith(java.io.File .separator + " rt.jar" )).head)
33
- -> url(" http://docs.oracle.com/javase/8/docs/api" )
34
- )
33
+ Option (System .getProperty(" sun.boot.class.path" )).flatMap { classPath =>
34
+ classPath.split(java.io.File .pathSeparator).filter(_.endsWith(java.io.File .separator + " rt.jar" )).headOption
35
+ }.map { jarPath =>
36
+ Map (
37
+ file(jarPath)
38
+ -> url(" http://docs.oracle.com/javase/8/docs/api" )
39
+ )
40
+ } getOrElse {
41
+ // If everything fails, jam in the Java 9 base module.
42
+ Map (
43
+ file(" /modules/java.base" )
44
+ -> url(" http://docs.oracle.com/javase/9/docs/api" ),
45
+ file(" /modules/java.xml" )
46
+ -> url(" http://docs.oracle.com/javase/9/docs/api" )
47
+
48
+ )
49
+ }
50
+ }
35
51
)
36
52
.jvmSettings(
37
53
OsgiKeys .exportPackage := Seq (s " scala.xml.*;version= ${version.value}" ),
Original file line number Diff line number Diff line change 1
- sbt.version =0.13.16
1
+ sbt.version =0.13.17
You can’t perform that action at this time.
0 commit comments