|
1 |
| -import ScalaModulePlugin._ |
2 |
| - |
3 |
| -scalaModuleSettings |
4 |
| - |
5 |
| -name := "scala-swing" |
6 |
| - |
7 |
| -version := "2.1.1" |
8 |
| - |
9 |
| -scalacOptions in ThisBuild ++= Seq("-deprecation", "-feature") |
10 |
| - |
11 |
| -// Map[JvmMajorVersion, List[(ScalaVersion, UseForPublishing)]] |
12 |
| -scalaVersionsByJvm in ThisBuild := Map( |
13 |
| - 8 -> List("2.11.12", "2.12.8", "2.13.0").map(_ -> true), |
14 |
| - 9 -> List("2.11.12", "2.12.8", "2.13.0").map(_ -> false), |
15 |
| - 10 -> List("2.11.12", "2.12.8", "2.13.0").map(_ -> false), |
16 |
| - 11 -> List("2.11.12", "2.12.8", "2.13.0").map(_ -> false), |
17 |
| - 12 -> List("2.11.12", "2.12.8", "2.13.0").map(_ -> false) |
18 |
| -) |
19 |
| - |
20 |
| -scalaVersion in ThisBuild := "2.12.8" |
21 |
| - |
22 |
| -OsgiKeys.exportPackage := Seq(s"scala.swing.*;version=${version.value}") |
23 |
| - |
24 |
| -mimaPreviousVersion := Some("2.1.0") |
25 |
| - |
26 |
| -// set the prompt (for this build) to include the project id. |
27 |
| -shellPrompt in ThisBuild := { state => Project.extract(state).currentRef.project + "> " } |
28 |
| - |
29 | 1 | lazy val swing = project.in(file("."))
|
| 2 | + .settings(ScalaModulePlugin.scalaModuleSettings) |
| 3 | + .settings(ScalaModulePlugin.scalaModuleSettingsJVM) |
30 | 4 | .settings(
|
31 |
| - libraryDependencies += { |
32 |
| - if (scalaVersion.value == "2.13.0") { |
33 |
| - "org.scalatest" % "scalatest_2.13.0-RC3" % "3.0.8-RC5" % Test |
34 |
| - } else { |
35 |
| - "org.scalatest" %% "scalatest" % "3.0.8-RC5" % Test |
36 |
| - } |
37 |
| - }, |
| 5 | + name := "scala-swing", |
| 6 | + OsgiKeys.exportPackage := Seq(s"scala.swing.*;version=${version.value}"), |
| 7 | + scalaModuleMimaPreviousVersion := Some("2.1.0"), |
| 8 | + // set the prompt (for this build) to include the project id. |
| 9 | + shellPrompt in ThisBuild := { state => Project.extract(state).currentRef.project + "> " }, |
| 10 | + libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.8" % Test, |
38 | 11 | // Adds a `src/main/scala-2.13+` source directory for Scala 2.13 and newer
|
39 | 12 | // and a `src/main/scala-2.13-` source directory for Scala version older than 2.13
|
40 | 13 | unmanagedSourceDirectories in Compile += {
|
|
0 commit comments