-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.sbt
50 lines (44 loc) · 1.43 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
ThisBuild / tlBaseVersion := "2.3"
ThisBuild / crossScalaVersions := Seq("2.12.20", "3.3.5", "2.13.16")
ThisBuild / tlVersionIntroduced := Map("3" -> "2.1.5")
ThisBuild / startYear := Some(2019)
ThisBuild / licenses := Seq(License.MIT)
ThisBuild / developers := List(
tlGitHubDev("larsrh", "Lars Hupel"),
tlGitHubDev("rossabaker", "Ross A. Baker"),
tlGitHubDev("travisbrown", "Travis Brown")
)
lazy val root = tlCrossRootProject.aggregate(scalatest)
lazy val scalatest = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("scalatest"))
.settings(
name := "discipline-scalatest",
libraryDependencies ++= Seq(
"org.typelevel" %%% "discipline-core" % "1.7.0",
"org.scalatestplus" %%% "scalacheck-1-18" % "3.2.19.0",
"org.scalatest" %%% "scalatest" % "3.2.19"
)
)
.nativeSettings(
tlVersionIntroduced := List("2.12", "2.13", "3").map(_ -> "2.3.0").toMap
)
lazy val docs = project
.in(file("site"))
.settings(
tlSiteHelium ~= {
import laika.helium.config.*
def textLink(p: (String, URL)) = TextLink.external(p._2.toString(), p._1)
_.site.mainNavigation(
appendLinks = Seq(
ThemeNavigationSection(
"Related Projects",
textLink(TypelevelProject.Cats),
textLink(TypelevelProject.Discipline)
)
)
)
}
)
.dependsOn(scalatest.jvm)
.enablePlugins(TypelevelSitePlugin)