1- import sbtcrossproject .{crossProject , CrossType }
1+ import sbtcrossproject .CrossType
2+ import sbtcrossproject .CrossPlugin .autoImport .crossProject
23import ScalaModulePlugin ._
34
45crossScalaVersions in ThisBuild := List (" 2.12.8" , " 2.13.0-RC1" )
@@ -83,7 +84,7 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform)
8384 ) ++ {
8485 // http://stackoverflow.com/questions/16934488
8586 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" ))
8788 }.map { jarPath =>
8889 Map (
8990 file(jarPath)
@@ -103,10 +104,10 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform)
103104 .jvmSettings(
104105 OsgiKeys .exportPackage := Seq (s " scala.xml.*;version= ${version.value}" ),
105106
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}" )
110111 )
111112 .jsSettings(
112113 // Scala.js cannot run forked tests
0 commit comments