-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
74 lines (69 loc) · 1.63 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
68
69
70
71
72
73
74
ThisBuild / scalaVersion := "2.13.3"
ThisBuild / autoAPIMappings := true
// publishing info
inThisBuild(
Seq(
organization := "lgbt.princess",
homepage := Some(url("https://github.com/NthPortal/v")),
licenses := Seq("The Apache License, Version 2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.txt")),
developers := List(
Developer(
"NthPortal",
"April | Princess",
"dev@princess.lgbt",
url("https://nthportal.com"),
)
),
scmInfo := Some(
ScmInfo(
url("https://github.com/NthPortal/v"),
"scm:git:git@github.com:NthPortal/v.git",
"scm:git:git@github.com:NthPortal/v.git",
)
),
)
)
lazy val sharedSettings = Seq(
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.2" % Test
),
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-Xlint",
"-Werror",
),
scalacOptions ++= {
if (isSnapshot.value) Nil
else Seq("-opt:l:inline", "-opt-inline-from:lgbt.princess.v.**")
},
)
lazy val core = project
.in(file("core"))
.settings(sharedSettings)
.settings(
name := "v-core",
mimaPreviousArtifacts := Set().map(organization.value %% name.value % _),
)
lazy val coreTest = core % "test->test"
lazy val semver = project
.in(file("semver"))
.dependsOn(
core,
coreTest,
)
.settings(sharedSettings)
.settings(
name := "v-semver",
mimaPreviousArtifacts := Set().map(organization.value %% name.value % _),
)
lazy val root = project
.in(file("."))
.aggregate(
core,
semver,
)
.settings(
name := "v",
mimaPreviousArtifacts := Set.empty,
)