-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
30 lines (26 loc) · 976 Bytes
/
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
name := "krapi"
lazy val root = Project(id = "krapi", base = file("."))
.aggregate(core, cli)
.enablePlugins(DockerComposePlugin)
.disablePlugins(ReleasePlugin)
.settings(addCommandAlias("dockerRelease", ";project core; release; project cli; release"))
lazy val core = module("core")
.enablePlugins(JavaServerAppPackaging, DockerComposePlugin)
.settings(Release.releaseSettings)
.settings(resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots"),
"confluent-release" at "http://packages.confluent.io/maven/"
)
)
lazy val cli = module("cli")
.enablePlugins(JavaServerAppPackaging)
.settings(Release.releaseSettings)
.settings(resolvers += Resolver.sonatypeRepo("snapshots"))
.dependsOn(core)
def module(name: String): Project =
Project(id = name, base = file(name))
.settings(
scalaVersion := "2.12.8",
scalacOptions += "-Ypartial-unification",
)
.settings(DockerSettings.common)