1
- import sbtcrossproject .{crossProject , CrossType }
1
+ import sbtcrossproject .CrossType
2
+ import sbtcrossproject .CrossPlugin .autoImport .crossProject
2
3
import ScalaModulePlugin ._
3
4
4
5
crossScalaVersions in ThisBuild := List (" 2.12.8" , " 2.13.0-RC1" )
@@ -83,7 +84,7 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform)
83
84
) ++ {
84
85
// http://stackoverflow.com/questions/16934488
85
86
Option (System .getProperty(" sun.boot.class.path" )).flatMap { classPath =>
86
- classPath.split(java.io.File .pathSeparator).filter (_.endsWith(java.io.File .separator + " rt.jar" )).headOption
87
+ classPath.split(java.io.File .pathSeparator).find (_.endsWith(java.io.File .separator + " rt.jar" ))
87
88
}.map { jarPath =>
88
89
Map (
89
90
file(jarPath)
@@ -103,10 +104,10 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform)
103
104
.jvmSettings(
104
105
OsgiKeys .exportPackage := Seq (s " scala.xml.*;version= ${version.value}" ),
105
106
106
- libraryDependencies += " junit" % " junit" % " 4.12" % " test " ,
107
- libraryDependencies += " com.novocode" % " junit-interface" % " 0.11" % " test " ,
108
- libraryDependencies += " org.apache.commons" % " commons-lang3" % " 3.9" % " test " ,
109
- libraryDependencies += (" org.scala-lang" % " scala-compiler" % scalaVersion.value % " test " ).exclude(" org.scala-lang.modules" , s " scala-xml_ ${scalaBinaryVersion.value}" )
107
+ libraryDependencies += " junit" % " junit" % " 4.12" % Test ,
108
+ libraryDependencies += " com.novocode" % " junit-interface" % " 0.11" % Test ,
109
+ libraryDependencies += " org.apache.commons" % " commons-lang3" % " 3.9" % Test ,
110
+ libraryDependencies += (" org.scala-lang" % " scala-compiler" % scalaVersion.value % Test ).exclude(" org.scala-lang.modules" , s " scala-xml_ ${scalaBinaryVersion.value}" )
110
111
)
111
112
.jsSettings(
112
113
// Scala.js cannot run forked tests
0 commit comments