-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.sbt
80 lines (69 loc) · 2.51 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
import Dependencies._
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
import scalariform.formatter.preferences._
lazy val commonSettings = scalariformSettings ++ Seq(
organization := "com.reactivehub",
scalaVersion := crossScalaVersions.value.head,
crossScalaVersions := Seq("2.11.10", "2.12.1"),
scalacOptions := Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Xfuture",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-unused",
"-Ywarn-unused-import"
),
licenses := Seq(("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))),
scmInfo := Some(ScmInfo(url("https://github.com/reactive-hub/akka-stream-apns"),
"[email protected]:reactive-hub/akka-stream-apns.git")),
bintrayOrganization := Some("reactivehub"),
publishMavenStyle := true,
pomIncludeRepository := (_ ⇒ false),
pomExtra := (
<developers>
<developer>
<id>marcelmojzis</id>
<name>Marcel Mojzis</name>
</developer>
</developers>
),
releaseTagComment := s"Release ${(version in ThisBuild).value}",
releaseCommitMessage := s"Set version to ${(version in ThisBuild).value}",
ScalariformKeys.preferences := FormattingPreferences()
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(PlaceScaladocAsterisksBeneathSecondAsterisk, true)
.setPreference(DanglingCloseParenthesis, Preserve)
.setPreference(RewriteArrowSymbols, true)
)
lazy val noPublishSettings = Seq(
publish := (),
publishLocal := (),
publishArtifact := false
)
lazy val `akka-stream-apns` = (project in file("."))
.aggregate(connector, examples, benchmarks)
.settings(moduleName := "akka-stream-apns-root")
.settings(commonSettings)
.settings(noPublishSettings)
lazy val connector = (project in file("connector"))
.settings(moduleName := "akka-stream-apns")
.settings(commonSettings)
.settings(libraryDependencies ++= connectorDeps(scalaVersion.value))
lazy val examples = (project in file("examples"))
.dependsOn(connector)
.settings(moduleName := "akka-stream-apns-examples")
.settings(commonSettings)
.settings(noPublishSettings)
.settings(libraryDependencies ++= examplesDeps)
lazy val benchmarks = (project in file("benchmarks"))
.enablePlugins(JmhPlugin)
.dependsOn(connector % "compile;compile->test")
.settings(moduleName := "akka-stream-apns-benchmarks")
.settings(commonSettings)
.settings(noPublishSettings)