forked from scala/scala-parser-combinators
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
36 lines (22 loc) · 1.09 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
import com.typesafe.tools.mima.plugin.{MimaPlugin, MimaKeys}
import com.typesafe.tools.mima.core.{ProblemFilters, MissingMethodProblem}
scalaModuleSettings
name := "scala-parser-combinators"
version := "1.0.3-SNAPSHOT"
scalaVersion := "2.11.2"
snapshotScalaBinaryVersion := "2.11"
// important!! must come here (why?)
scalaModuleOsgiSettings
OsgiKeys.exportPackage := Seq(s"scala.util.parsing.*;version=${version.value}")
// needed to fix classloader issues (see scala-xml#20)
fork in Test := true
libraryDependencies += "junit" % "junit" % "4.11" % "test"
libraryDependencies += "com.novocode" % "junit-interface" % "0.10" % "test"
MimaPlugin.mimaDefaultSettings
MimaKeys.previousArtifact := Some(organization.value % s"${name.value}_2.11" % "1.0.2")
// run mima during tests
test in Test := {
MimaKeys.reportBinaryIssues.value
(test in Test).value
}
MimaKeys.binaryIssueFilters += ProblemFilters.exclude[MissingMethodProblem]("scala.util.parsing.combinator.RegexParsers.scala$util$parsing$combinator$RegexParsers$$super$err")