Skip to content

Commit d348fd2

Browse files
committed
Merge remote-tracking branch 'origin/main' into update/sbt-scala-module-2.4.0
2 parents 4516321 + c66a4bc commit d348fd2

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

build.sbt

+21-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
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,
35

4-
name := "scala-async"
5-
scalaModuleAutomaticModuleName := Some("scala.async")
6-
versionPolicyIntention := Compatibility.BinaryAndSourceCompatible
6+
OsgiKeys.exportPackage := Seq(s"scala.async.*;version=${version.value}"),
77

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,
1111

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)
1625

1726
Global / parallelExecution := false
1827

@@ -42,7 +51,6 @@ pomExtra := (
4251
</developer>
4352
</developers>
4453
)
45-
OsgiKeys.exportPackage := Seq(s"scala.async.*;version=${version.value}")
4654

4755
commands += testDeterminism
4856

project/plugins.sbt

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "2.4.0")
2+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.7.0")
3+
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0")

0 commit comments

Comments
 (0)