1
1
val sharedSettings = ScalaModulePlugin .scalaModuleSettings ++ ScalaModulePlugin .scalaModuleOsgiSettings ++ Seq (
2
2
name := " scala-async" ,
3
3
scalaModuleAutomaticModuleName := Some (" scala.async" ),
4
- versionPolicyIntention := Compatibility .BinaryAndSourceCompatible ,
4
+
5
+ crossScalaVersions := Seq (" 2.13.6" , " 2.12.14" ),
6
+ scalaVersion := crossScalaVersions.value.head,
5
7
6
8
OsgiKeys .exportPackage := Seq (s " scala.async.*;version= ${version.value}" ),
7
9
@@ -12,16 +14,23 @@ val sharedSettings = ScalaModulePlugin.scalaModuleSettings ++ ScalaModulePlugin.
12
14
ScalaModulePlugin .enableOptimizer,
13
15
testOptions += Tests .Argument (TestFrameworks .JUnit , " -q" , " -v" , " -s" ),
14
16
Test / scalacOptions ++= Seq (" -Yrangepos" ),
15
- scalacOptions ++= List (" -deprecation" , " -Xasync" )
17
+ scalacOptions ++= List (" -deprecation" , " -Xasync" ),
16
18
)
17
19
18
20
lazy val proj = crossProject(JSPlatform , JVMPlatform )
19
21
.withoutSuffixFor(JVMPlatform )
20
22
.crossType(CrossType .Pure )
21
23
.in(file(" ." ))
22
24
.settings(sharedSettings)
25
+ // until we have actually published for Scala.js
26
+ .jvmSettings(versionPolicyIntention := Compatibility .BinaryAndSourceCompatible )
27
+ .jsSettings(versionPolicyIntention := Compatibility .None )
28
+ // override sbt-scala-module default (which is unsuitable for Scala.js)
29
+ .jsSettings(Test / fork := false )
23
30
24
- lazy val root = project.in(file(" ." )).settings(sharedSettings)
31
+ lazy val root = project.in(file(" ." ))
32
+ .settings(sharedSettings)
33
+ .aggregate(proj.jvm, proj.js)
25
34
26
35
Global / parallelExecution := false
27
36
0 commit comments