-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
61 lines (53 loc) · 1.46 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
import dependencies._
val withTests: String = "compile->compile;test->test"
cancelable in Global := true
val scala212 = "2.12.11"
val scala213 = "2.13.2"
inThisBuild(
Seq(
organization := "com.clovellytech",
homepage := Some(url("https://github.com/clovellytech/sendgrid-scala")),
licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT")),
developers := List(
Developer(
"zakpatterson",
"Zak Patterson",
url("https://github.com/zakpatterson")
)
)
)
)
val commonSettings = Seq(
scalaVersion := scala213,
crossScalaVersions := Seq(scala212, scala213),
resolvers ++= addResolvers,
scalacOptions ++= options.scalacExtraOptionsForVersion(scalaVersion.value),
libraryDependencies ++= compilerPluginsForVersion(scalaVersion.value)
)
lazy val core = project
.in(file("./modules/core"))
.settings(commonSettings)
lazy val docs = project
.in(file("./sendgrid-scala-docs"))
.settings(
crossScalaVersions := Seq(scala212),
moduleName := "sendgrid-scala-docs",
mdocVariables := Map(
"VERSION" -> version.value
),
cancelable in Global := true,
skip in publish := true
)
.enablePlugins(MdocPlugin)
.enablePlugins(DocusaurusPlugin)
.dependsOn(core)
lazy val root = project
.in(file("."))
.settings(name := "sendgrid-scala-root")
.settings(commonSettings)
.settings(
skip in publish := true
)
.dependsOn(core)
.aggregate(core)