|
1 |
| -ScalaModulePlugin.scalaModuleSettings |
2 |
| -ScalaModulePlugin.scalaModuleOsgiSettings |
3 | 1 |
|
4 |
| -name := "scala-async" |
5 |
| -scalaModuleAutomaticModuleName := Some("scala.async") |
| 2 | +val sharedSettings = ScalaModulePlugin.scalaModuleSettings ++ ScalaModulePlugin.scalaModuleOsgiSettings ++ Seq( |
| 3 | + name := "scala-async", |
| 4 | + scalaModuleAutomaticModuleName := Some("scala.async"), |
6 | 5 |
|
7 |
| -libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value % "provided" |
8 |
| -libraryDependencies += "junit" % "junit" % "4.13.2" % Test |
9 |
| -libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test |
| 6 | + OsgiKeys.exportPackage := Seq(s"scala.async.*;version=${version.value}"), |
10 | 7 |
|
11 |
| -ScalaModulePlugin.enableOptimizer |
12 |
| -testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v", "-s") |
13 |
| -Test / scalacOptions ++= Seq("-Yrangepos") |
14 |
| -scalacOptions ++= List("-deprecation" , "-Xasync") |
| 8 | + libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value % "provided", |
| 9 | + libraryDependencies += "junit" % "junit" % "4.13.2" % Test, |
| 10 | + libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test, |
| 11 | + |
| 12 | + ScalaModulePlugin.enableOptimizer, |
| 13 | + testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v", "-s"), |
| 14 | + Test / scalacOptions ++= Seq("-Yrangepos"), |
| 15 | + scalacOptions ++= List("-deprecation" , "-Xasync") |
| 16 | +) |
| 17 | + |
| 18 | +lazy val proj = crossProject(JSPlatform, JVMPlatform) |
| 19 | + .withoutSuffixFor(JVMPlatform) |
| 20 | + .crossType(CrossType.Pure) |
| 21 | + .in(file(".")) |
| 22 | + .settings(sharedSettings) |
| 23 | + |
| 24 | +lazy val root = project.in(file(".")).settings(sharedSettings) |
15 | 25 |
|
16 | 26 | Global / parallelExecution := false
|
17 | 27 |
|
@@ -41,7 +51,6 @@ pomExtra := (
|
41 | 51 | </developer>
|
42 | 52 | </developers>
|
43 | 53 | )
|
44 |
| -OsgiKeys.exportPackage := Seq(s"scala.async.*;version=${version.value}") |
45 | 54 |
|
46 | 55 | commands += testDeterminism
|
47 | 56 |
|
|
0 commit comments