-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.sbt
72 lines (66 loc) · 2.25 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
import com.typesafe.sbt.SbtMultiJvm.multiJvmSettings
import com.typesafe.sbt.SbtMultiJvm.MultiJvmKeys.MultiJvm
HeaderPlugin.autoImport.headerSettings(MultiJvm)
AutomateHeaderPlugin.autoImport.automateHeaderSettings(MultiJvm)
lazy val `akka-reasonable-downing` =
project
.in(file("."))
.settings(multiJvmSettings: _*)
.enablePlugins(AutomateHeaderPlugin, GitVersioning, GitBranchPrompt)
.settings(settings)
.settings(
libraryDependencies ++= Seq(
library.akkaCluster % Provided,
library.akkaCluster % Test,
library.akkaMultiNode % Test,
library.scalaTest % Test
)
)
.configs (MultiJvm)
lazy val library =
new {
object Version {
val akka = "2.6.0"
val scalaTest = "3.0.8"
}
val akkaCluster = "com.typesafe.akka" %% "akka-cluster" % Version.akka
val akkaMultiNode = "com.typesafe.akka" %% "akka-multi-node-testkit" % Version.akka
val scalaTest = "org.scalatest" %% "scalatest" % Version.scalaTest
}
lazy val settings =
commonSettings ++
gitSettings
lazy val commonSettings =
Seq(
organization := "pl.immutables",
organizationName := "Mateusz Bilski",
startYear := Some(2017),
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")),
homepage := Some(url("http://github.com/mbilski/akka-reasonable-downing")),
developers := List(
Developer("mbilski", "Mateusz Bilski", "[email protected]", url("http://immutables.pl"))),
scmInfo := Some(
ScmInfo(
url("https://github.com/mbilski/akka-reasonable-downing"),
"scm:git:[email protected]:mbilski/akka-reasonable-downing.git"
)
),
scalaVersion := "2.13.1",
crossScalaVersions := Seq("2.13.1"),
releaseCrossBuild := true,
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-language:_",
"-target:jvm-1.8",
"-encoding", "UTF-8"
),
parallelExecution in Test := false,
unmanagedSourceDirectories.in(Compile) := Seq(scalaSource.in(Compile).value),
unmanagedSourceDirectories.in(Test) := Seq(scalaSource.in(Test).value)
)
lazy val gitSettings =
Seq(
git.useGitDescribe := true
)