forked from scala/scala-library-next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
32 lines (30 loc) · 1.1 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
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.1" % Test,
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test,
testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-v"),
)
.jsConfigure(_.enablePlugins(ScalaJSJUnitPlugin))
.settings(
ScalaModulePlugin.scalaModuleSettings,
scalaModuleMimaPreviousVersion := None,
scalacOptions ++= Seq("-deprecation", "-feature", "-Werror"),
libraryDependencies ++= Seq(
"org.scalacheck" %%% "scalacheck" % "1.14.3" % Test,
),
)
.jsSettings(
Test / fork := false,
)
lazy val scalaLibraryNextJVM = scalaLibraryNext.jvm
lazy val scalaLibraryNextJS = scalaLibraryNext.js