-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
67 lines (59 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
val Scala212 = "2.12.12"
val Scala213 = "2.13.3"
inThisBuild(
List(
organization := "com.kubukoz",
homepage := Some(url("https://github.com/kubukoz/managed")),
licenses := List(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
developers := List(
Developer(
"kubukoz",
"Jakub Kozłowski",
"kubukoz@gmail.com",
url("https://kubukoz.com")
)
)
)
)
val noPublishPlease = Seq(
skip in publish := true
)
def crossPlugin(x: sbt.librarymanagement.ModuleID) = compilerPlugin(
x.cross(CrossVersion.full)
)
val compilerPlugins = List(
crossPlugin("org.typelevel" % "kind-projector" % "0.11.0"),
crossPlugin("com.github.cb372" % "scala-typed-holes" % "0.1.5"),
compilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")
)
val commonSettings = Seq(
scalaVersion := Scala212,
crossScalaVersions := Seq(Scala212, Scala213),
scalacOptions --= Seq("-Xfatal-warnings"),
name := "managed",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % "2.2.0",
"com.codecommit" %% "skolems" % "0.2.1"
) ++ compilerPlugins
)
val core = project.settings(commonSettings).settings(name += "-core")
val effect = project
.settings(
commonSettings,
name := "managed-effect",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-effect" % "2.2.0"
)
)
.dependsOn(core)
val demo =
project.settings(commonSettings, noPublishPlease).dependsOn(core, effect)
val managed =
project
.in(file("."))
.settings(commonSettings)
.settings(noPublishPlease)
.dependsOn(core, effect, demo)
.aggregate(core, effect, demo)