11val sharedSettings = ScalaModulePlugin .scalaModuleSettings ++ ScalaModulePlugin .scalaModuleOsgiSettings ++ Seq (
22 name := " scala-async" ,
33 scalaModuleAutomaticModuleName := Some (" scala.async" ),
4- versionPolicyIntention := Compatibility .BinaryAndSourceCompatible ,
54
65 OsgiKeys .exportPackage := Seq (s " scala.async.*;version= ${version.value}" ),
76
@@ -12,16 +11,23 @@ val sharedSettings = ScalaModulePlugin.scalaModuleSettings ++ ScalaModulePlugin.
1211 ScalaModulePlugin .enableOptimizer,
1312 testOptions += Tests .Argument (TestFrameworks .JUnit , " -q" , " -v" , " -s" ),
1413 Test / scalacOptions ++= Seq (" -Yrangepos" ),
15- scalacOptions ++= List (" -deprecation" , " -Xasync" )
14+ scalacOptions ++= List (" -deprecation" , " -Xasync" ),
1615)
1716
1817lazy val proj = crossProject(JSPlatform , JVMPlatform )
1918 .withoutSuffixFor(JVMPlatform )
2019 .crossType(CrossType .Pure )
2120 .in(file(" ." ))
2221 .settings(sharedSettings)
22+ // until we have actually published for Scala.js
23+ .jvmSettings(versionPolicyIntention := Compatibility .BinaryAndSourceCompatible )
24+ .jsSettings(versionPolicyIntention := Compatibility .None )
25+ // override sbt-scala-module default (which is unsuitable for Scala.js)
26+ .jsSettings(Test / fork := false )
2327
24- lazy val root = project.in(file(" ." )).settings(sharedSettings)
28+ lazy val root = project.in(file(" ." ))
29+ .settings(sharedSettings)
30+ .aggregate(proj.jvm, proj.js)
2531
2632Global / parallelExecution := false
2733
0 commit comments