-
Notifications
You must be signed in to change notification settings - Fork 122
/
build.sbt
67 lines (61 loc) · 1.85 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
lazy val defaultSettings =
Project.defaultSettings ++
Compiler.defaultSettings ++
Publish.defaultSettings ++
Formatting.defaultSettings ++
Console.defaultSettings ++
Docs.defaultSettings ++
Tests.defaultSettings
Global / onChangedBuildSource := ReloadOnSourceChanges
ThisBuild / turbo := true
inThisBuild(List(
tlBaseVersion := "2.0",
organization := "org.typelevel",
homepage := Some(url("http://www.squants.com/")),
licenses := Seq("Apache 2.0" -> url("http://www.opensource.org/licenses/Apache-2.0")),
tlCiReleaseBranches := Seq("master"),
developers := List(
Developer(
"garyKeorkunian",
"Gary Keorkunian",
"unknown",
url("http://www.linkedin.com/in/garykeorkunian")
)
),
crossScalaVersions := Versions.ScalaCross,
githubWorkflowBuildMatrixExclusions +=
MatrixExclude(Map("project" -> "rootNative", "scala" -> Versions.Scala3)),
))
lazy val squants =
crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Full)
.in(file("."))
.settings(defaultSettings: _*)
.jvmConfigure(
_.enablePlugins(SbtOsgi)
)
.jvmSettings(
osgiSettings,
Test / parallelExecution := false,
)
.jvmSettings(Tests.defaultSettings: _*)
.jsSettings(
Test / parallelExecution := false,
Test / excludeFilter := "*Serializer.scala" || "*SerializerSpec.scala",
)
.nativeSettings(
crossScalaVersions := Versions.ScalaCross.filterNot(_.startsWith("3")),
Compile / doc / sources := List(), // Can't build docs in native
)
lazy val docs =
project.in(file("squants-docs"))
.dependsOn(squants.jvm)
.enablePlugins(MdocPlugin, NoPublishPlugin)
.settings(
scalaVersion := Versions.Scala,
mdocOut := (ThisBuild / baseDirectory).value,
mdocAutoDependency := false,
)
lazy val root = tlCrossRootProject
.aggregate(squants)
.settings(defaultSettings: _*)