forked from scala/scala-xml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
39 lines (26 loc) · 1.24 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import com.typesafe.tools.mima.plugin.{MimaPlugin, MimaKeys}
scalaModuleSettings
name := "scala-xml"
version := "1.0.6-SNAPSHOT"
scalaVersion := crossScalaVersions.value.head
crossScalaVersions := {
val java = System.getProperty("java.version")
if (java.startsWith("1.6.") || java.startsWith("1.7."))
Seq("2.11.7", "2.12.0-M1")
else if (java.startsWith("1.8.") || java.startsWith("1.9."))
Seq("2.11.8", "2.12.0-M2")
else
sys.error(s"don't know what Scala versions to build on $java")
}
//reenable -Xfatal-warnings?
scalacOptions ++= "-deprecation:false -feature -Xlint:-stars-align,-nullary-unit,_".split("\\s+").to[Seq]
scalacOptions in Test += "-Xxml:coalescing"
// important!! must come here (why?)
scalaModuleOsgiSettings
OsgiKeys.exportPackage := Seq(s"scala.xml.*;version=${version.value}")
libraryDependencies += "junit" % "junit" % "4.11" % "test"
libraryDependencies += "com.novocode" % "junit-interface" % "0.10" % "test"
//// testing:
// used in CompilerErrors test
libraryDependencies += ("org.scala-lang" % "scala-compiler" % scalaVersion.value % "test").exclude("org.scala-lang.modules", s"scala-xml*")
mimaPreviousVersion := Some("1.0.1")