Skip to content

Commit 7adf518

Browse files
authored
Merge pull request #305 from Philippus/small-fixups
Clean up build.sbt
2 parents 9e37824 + 74ba826 commit 7adf518

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

build.sbt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import sbtcrossproject.{crossProject, CrossType}
1+
import sbtcrossproject.CrossType
2+
import sbtcrossproject.CrossPlugin.autoImport.crossProject
23
import ScalaModulePlugin._
34

45
crossScalaVersions 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

Comments
 (0)