-
Notifications
You must be signed in to change notification settings - Fork 44
/
build.sbt
84 lines (64 loc) · 3.09 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
75
76
77
78
79
80
81
82
83
84
import com.typesafe.sbt.SbtScalariform
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
import scalariform.formatter.preferences._
// ---------------------------------------------------------------------------
// Main settings
// ---------------------------------------------------------------------------
name := "streamz"
ThisBuild / organization := "com.github.krasserm"
ThisBuild / version := "0.13-RC4"
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / licenses += "Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
ThisBuild / crossScalaVersions := Seq("2.12.12", "2.13.3")
ThisBuild / scalaVersion := "2.13.3"
ThisBuild / libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest-wordspec" % Version.Scalatest % "test",
"org.scalatest" %% "scalatest-shouldmatchers" % Version.Scalatest % "test",
)
// No need for `sbt doc` to fail on warnings
val docSettings = Compile / doc / scalacOptions -= "-Xfatal-warnings"
ThisBuild / scalafixScalaBinaryVersion := CrossVersion.binaryScalaVersion(scalaVersion.value)
ThisBuild / bintrayOrganization := Some("streamz")
ThisBuild / bintrayReleaseOnPublish := false
// ---------------------------------------------------------------------------
// Code formatter settings
// ---------------------------------------------------------------------------
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DanglingCloseParenthesis, Preserve)
.setPreference(DoubleIndentConstructorArguments, false)
// ---------------------------------------------------------------------------
// License header settings
// ---------------------------------------------------------------------------
lazy val header = HeaderLicense.ALv2("2014 - 2020", "the original author or authors.")
lazy val headerSettings = Seq(
headerLicense := Some(header)
)
// ---------------------------------------------------------------------------
// Projects
// ---------------------------------------------------------------------------
lazy val root = project.in(file("."))
.aggregate(camelContext, camelAkka, camelFs2, converter, examples)
.settings(
unidocProjectFilter in (ScalaUnidoc, unidoc) := inAnyProject -- inProjects(examples),
docSettings
)
.enablePlugins(ScalaUnidocPlugin)
lazy val camelContext = project.in(file("streamz-camel-context"))
.enablePlugins(AutomateHeaderPlugin)
.settings(headerSettings, docSettings)
lazy val camelAkka = project.in(file("streamz-camel-akka"))
.enablePlugins(AutomateHeaderPlugin)
.settings(headerSettings, docSettings)
.dependsOn(camelContext)
lazy val camelFs2 = project.in(file("streamz-camel-fs2"))
.enablePlugins(AutomateHeaderPlugin)
.settings(headerSettings, docSettings)
.dependsOn(camelContext)
lazy val converter = project.in(file("streamz-converter"))
.enablePlugins(AutomateHeaderPlugin)
.settings(headerSettings, docSettings)
lazy val examples = project.in(file("streamz-examples"))
.enablePlugins(AutomateHeaderPlugin)
.settings(headerSettings, docSettings)
.dependsOn(camelAkka, camelFs2, converter)