This repository was archived by the owner on Sep 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathbuild.sbt
37 lines (29 loc) · 1.52 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
import ScalaModulePlugin._
import VersionKeys._
scalaModuleSettings
name := "scala-partest"
version := "1.1.4-SNAPSHOT"
scalaVersionsByJvm in ThisBuild := {
val vs = List("2.12.8")
Map(
8 -> vs.map(_ -> true),
11 -> vs.map(_ -> false),
12 -> vs.map(_ -> false),
13 -> vs.map(_ -> false),
14 -> vs.map(_ -> false))
}
scalaXmlVersion := "1.0.6"
scalacOptions += "-Xfatal-warnings"
enableOptimizer
// dependencies
// versions involved in integration builds / that change frequently should be keys, set above!
libraryDependencies += "com.googlecode.java-diff-utils" % "diffutils" % "1.3.0"
libraryDependencies += "org.scala-sbt" % "test-interface" % "1.0"
// mark all scala dependencies as provided which means one has to explicitly provide them when depending on partest
// this allows for easy testing of modules (like scala-xml) that provide tested classes themselves and shouldn't
// pull in an older version of itself
libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % scalaXmlVersion.value % "provided" intransitive()
libraryDependencies += "org.scala-lang" % "scalap" % scalaVersion.value % "provided" intransitive()
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value % "provided" intransitive()
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value % "provided" intransitive()
OsgiKeys.exportPackage := Seq(s"scala.tools.partest.*;version=${version.value}")