This repository has been archived by the owner on Jul 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
52 lines (43 loc) · 1.86 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
name := "sapida"
lazy val commonSettings = Seq(
organization := "com.github.cmontemuino",
organizationName := "Carlos Montemuiño",
organizationHomepage := Some(url("https://cmontemuino.github.io")),
startYear := Some(2018),
licenses := List("Apache-2.0" -> url("https://opensource.org/licenses/Apache-2.0")),
javacOptions in (Compile, compile) ++= Seq("-source", "1.8", "-target", "1.8", "-encoding", "UTF8", "-g:lines,vars,source", "-Xlint:unchecked"),
scalaVersion := "2.12.6",
scalacOptions := Seq("-unchecked", "-deprecation", "-feature", "-encoding", "utf8"),
parallelExecution in Test := false,
crossPaths := false,
autoScalaLibrary := false,
scalafmtOnCompile := true,
// Docker rejects tags which include '+'
version in ThisBuild ~= (_.replace('+', '-')),
dynver in ThisBuild ~= (_.replace('+', '-')),
scmInfo := Some(ScmInfo(url("https://github.com/cmontemuino/sapida"), "git@github.com:cmontemuino/sapida.git")),
)
lazy val noPublish = Seq(
publishArtifact := false,
publish := {},
publishLocal := {}
)
lazy val root = project.in(file("."))
.settings(commonSettings: _*)
.settings(noPublish: _*)
.aggregate(core, consumers, producers, http, demo)
.enablePlugins(AutomateHeaderPlugin)
lazy val core = project.in(file("core"))
.settings(commonSettings: _*)
lazy val consumers = project.in(file("consumers"))
.settings(commonSettings: _*)
lazy val producers = project.in(file("producers"))
.settings(commonSettings: _*)
lazy val http = project.in(file("http"))
.settings(commonSettings: _*)
lazy val demo = project.in(file("demo"))
.settings(commonSettings: _*)
.settings(noPublish: _*)
.dependsOn(core, consumers, producers, http)
// Reduce verbosity during IVY resolution
ivyLoggingLevel in ThisBuild := UpdateLogging.Quiet