-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.sbt
35 lines (32 loc) · 1.29 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
ThisBuild / scalaVersion := "2.13.15"
lazy val root = project.in(file("."))
.aggregate(scalaLibraryNextJVM, scalaLibraryNextJS)
.settings(
publish / skip := true,
// With CrossType.Pure, the root project also picks up the sources in `src`
Compile / unmanagedSourceDirectories := Nil,
Test / unmanagedSourceDirectories := Nil,
)
lazy val scalaLibraryNext = crossProject(JVMPlatform, JSPlatform)
.crossType(CrossType.Pure)
.in(file("."))
.jvmSettings(
libraryDependencies += "junit" % "junit" % "4.13.2" % Test,
libraryDependencies += "com.github.sbt" % "junit-interface" % "0.13.3" % Test,
testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-v"),
)
.jsEnablePlugins(ScalaJSJUnitPlugin)
.settings(
ScalaModulePlugin.scalaModuleSettings,
scalaModuleAutomaticModuleName := Some("scala.library.next"),
versionPolicyIntention := Compatibility.None, // TODO Change to `Compatibility.BinaryAndSourceCompatible` after the first release
scalacOptions ++= Seq("-deprecation", "-feature", "-Werror"),
libraryDependencies ++= Seq(
"org.scalacheck" %%% "scalacheck" % "1.18.1" % Test,
),
)
.jsSettings(
Test / fork := false,
)
lazy val scalaLibraryNextJVM = scalaLibraryNext.jvm
lazy val scalaLibraryNextJS = scalaLibraryNext.js