forked from scala/scala-swing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
47 lines (36 loc) · 1.29 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
40
41
42
43
44
45
46
47
import ScalaModulePlugin._
scalaModuleSettings
name := "scala-swing"
version := "2.0.4-SNAPSHOT"
scalacOptions ++= Seq("-deprecation", "-feature")
// Map[JvmMajorVersion, List[(ScalaVersion, UseForPublishing)]]
scalaVersionsByJvm in ThisBuild := Map(
8 -> List("2.11.12", "2.12.6", "2.13.0-M3").map(_ -> true),
9 -> List("2.11.12", "2.12.6", "2.13.0-M3").map(_ -> false),
10 -> List("2.11.12", "2.12.6", "2.13.0-M3").map(_ -> false)
)
OsgiKeys.exportPackage := Seq(s"scala.swing.*;version=${version.value}")
mimaPreviousVersion := Some("2.0.0")
// set the prompt (for this build) to include the project id.
shellPrompt in ThisBuild := { state => Project.extract(state).currentRef.project + "> " }
lazy val swing = project.in(file("."))
.settings(
libraryDependencies += {
val v = if (scalaVersion.value == "2.13.0-M3") "3.0.5-M1" else "3.0.5"
"org.scalatest" %% "scalatest" % v % "test"
}
)
lazy val examples = project.in(file("examples"))
.dependsOn(swing)
.settings(
scalaVersion := (scalaVersion in swing).value,
fork in run := true,
fork := true
)
lazy val uitest = project.in(file("uitest"))
.dependsOn(swing)
.settings(
scalaVersion := (scalaVersion in swing).value,
fork in run := true,
fork := true
)