-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.sbt
34 lines (29 loc) · 1.27 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
ThisBuild / tlBaseVersion := "1.2"
ThisBuild / developers += tlGitHubDev("mpilquist", "Michael Pilquist")
ThisBuild / startYear := Some(2021)
ThisBuild / crossScalaVersions := List("2.12.20", "2.13.16", "3.3.4")
ThisBuild / tlVersionIntroduced := Map("3" -> "1.0.2")
lazy val root = tlCrossRootProject.aggregate(core, tests)
lazy val core = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.settings(
name := "literally",
scalacOptions := scalacOptions.value.filterNot(_ == "-source:3.0-migration"),
libraryDependencies ++= {
if (tlIsScala3.value) Nil else List("org.scala-lang" % "scala-reflect" % scalaVersion.value % Provided)
},
tlMimaPreviousVersions := tlMimaPreviousVersions.value - "1.0.3"
)
.nativeSettings(
tlVersionIntroduced := List("2.12", "2.13", "3").map(_ -> "1.2.0").toMap
)
lazy val tests = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.enablePlugins(NoPublishPlugin)
.dependsOn(core)
.settings(
name := "tests",
scalacOptions := scalacOptions.value.filterNot(_ == "-source:3.0-migration"),
libraryDependencies += "org.scalameta" %%% "munit" % "1.0.4" % Test,
libraryDependencies ++= {
if (tlIsScala3.value) Nil else List("org.scala-lang" % "scala-reflect" % scalaVersion.value % Provided)
}
)