|
| 1 | +import sbtcrossproject.CrossPlugin.autoImport.{ crossProject, CrossType } |
1 | 2 | import ScalaModulePlugin._
|
2 | 3 |
|
3 | 4 | scalaModuleSettings
|
4 | 5 | scalaModuleSettingsJVM
|
5 | 6 |
|
6 |
| -name := "scala-collection-contrib" |
7 |
| -version := "0.1.1-SNAPSHOT" |
8 |
| - |
9 |
| -crossScalaVersions in ThisBuild := Seq("2.13.0") |
10 |
| - |
11 |
| -scalacOptions ++= Seq("-opt-warnings", "-language:higherKinds", "-deprecation", "-feature", "-Xfatal-warnings") |
12 |
| -scalacOptions in (Compile, doc) ++= Seq("-implicits", "-groups") |
13 |
| - |
14 |
| -testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v", "-s", "-a") |
15 |
| -parallelExecution in Test := false // why? |
16 |
| - |
17 |
| -mimaPreviousVersion := Some("0.1.0") |
18 |
| - |
19 |
| -homepage := Some(url("https://github.com/scala/scala-collection-contrib")) |
20 |
| -licenses := Seq("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0")) |
21 |
| - |
22 |
| -libraryDependencies ++= Seq( |
23 |
| - "junit" % "junit" % "4.12" % Test, |
24 |
| - "com.novocode" % "junit-interface" % "0.11" % Test, |
25 |
| - "org.openjdk.jol" % "jol-core" % "0.9" % Test |
26 |
| -) |
| 7 | +val root = crossProject(JVMPlatform, JSPlatform) |
| 8 | + .crossType(CrossType.Full) |
| 9 | + .in(file(".")).settings( |
| 10 | + name := "scala-collection-contrib", |
| 11 | + version := "0.1.1-SNAPSHOT", |
| 12 | + |
| 13 | + crossScalaVersions in ThisBuild := Seq("2.13.0"), |
| 14 | + |
| 15 | + scalacOptions ++= Seq("-opt-warnings", "-language:higherKinds", "-deprecation", "-feature", "-Xfatal-warnings"), |
| 16 | + scalacOptions in (Compile, doc) ++= Seq("-implicits", "-groups"), |
| 17 | + |
| 18 | + testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v", "-s", "-a"), |
| 19 | + parallelExecution in Test := false, // why? |
| 20 | + |
| 21 | + mimaPreviousVersion := Some("0.1.0"), |
| 22 | + |
| 23 | + homepage := Some(url("https://github.com/scala/scala-collection-contrib")), |
| 24 | + licenses := Seq("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0")), |
| 25 | + |
| 26 | + libraryDependencies ++= Seq( |
| 27 | + "junit" % "junit" % "4.12" % Test, |
| 28 | + "com.novocode" % "junit-interface" % "0.11" % Test, |
| 29 | + "org.openjdk.jol" % "jol-core" % "0.9" % Test |
| 30 | + ) |
| 31 | + ) |
| 32 | + .enablePlugins(ScalaJSJUnitPlugin) |
| 33 | + .jsSettings( |
| 34 | + libraryDependencies ++= Seq( |
| 35 | + "org.scala-js" %% "scalajs-junit-test-runtime" % "0.6.28" % Test |
| 36 | + ) |
| 37 | + ) |
0 commit comments