|
1 | | -ScalaModulePlugin.scalaModuleSettings |
2 | | -ScalaModulePlugin.scalaModuleOsgiSettings |
| 1 | +val sharedSettings = ScalaModulePlugin.scalaModuleSettings ++ ScalaModulePlugin.scalaModuleOsgiSettings ++ Seq( |
| 2 | + name := "scala-async", |
| 3 | + scalaModuleAutomaticModuleName := Some("scala.async"), |
| 4 | + versionPolicyIntention := Compatibility.BinaryAndSourceCompatible, |
3 | 5 |
|
4 | | -name := "scala-async" |
5 | | -scalaModuleAutomaticModuleName := Some("scala.async") |
6 | | -versionPolicyIntention := Compatibility.BinaryAndSourceCompatible |
| 6 | + OsgiKeys.exportPackage := Seq(s"scala.async.*;version=${version.value}"), |
7 | 7 |
|
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 |
| 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 | 11 |
|
12 | | -ScalaModulePlugin.enableOptimizer |
13 | | -testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v", "-s") |
14 | | -Test / scalacOptions ++= Seq("-Yrangepos") |
15 | | -scalacOptions ++= List("-deprecation" , "-Xasync") |
| 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) |
16 | 25 |
|
17 | 26 | Global / parallelExecution := false |
18 | 27 |
|
@@ -42,7 +51,6 @@ pomExtra := ( |
42 | 51 | </developer> |
43 | 52 | </developers> |
44 | 53 | ) |
45 | | -OsgiKeys.exportPackage := Seq(s"scala.async.*;version=${version.value}") |
46 | 54 |
|
47 | 55 | commands += testDeterminism |
48 | 56 |
|
|
0 commit comments