forked from EventStore/EventStore.JVM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
114 lines (92 loc) · 3.88 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import sbtprotobuf.ProtobufPlugin
import com.typesafe.sbt.SbtScalariform
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
import scalariform.formatter.preferences._
name := "eventstore-client"
organization := "com.geteventstore"
scalaVersion := "2.12.2"
crossScalaVersions := Seq("2.12.2", "2.11.11")
releaseCrossBuild := true
licenses := Seq("BSD 3-Clause" -> url("http://raw.github.com/EventStore/EventStore.JVM/master/LICENSE"))
homepage := Some(new URL("http://github.com/EventStore/EventStore.JVM"))
organizationHomepage := Some(new URL("http://geteventstore.com"))
description := "Event Store JVM Client"
startYear := Some(2013)
scalacOptions ++= Seq(
"-encoding", "UTF-8",
"-feature",
"-unchecked",
"-deprecation",
// "-Xfatal-warnings",
"-Xlint:-missing-interpolator",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Xfuture"
)
scalacOptions in(Compile, doc) ++= Seq("-groups", "-implicits", "-no-link-warnings")
val AkkaVersion = "2.5.1"
val AkkaHttpVersion = "10.0.6"
val ReactiveStreamsVersion = "1.0.0"
val Specs2Version = "3.8.9"
libraryDependencies ++= Seq(
"org.reactivestreams" % "reactive-streams" % ReactiveStreamsVersion,
"org.reactivestreams" % "reactive-streams-tck" % ReactiveStreamsVersion % Test,
"com.typesafe.akka" %% "akka-actor" % AkkaVersion,
"com.typesafe.akka" %% "akka-testkit" % AkkaVersion % Test,
"com.typesafe.akka" %% "akka-stream" % AkkaVersion,
"com.typesafe.akka" %% "akka-stream-testkit" % AkkaVersion % Test,
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion,
"com.typesafe" % "config" % "1.3.1",
"io.spray" %% "spray-json" % "1.3.3",
"com.typesafe.akka" %% "akka-http-spray-json" % AkkaHttpVersion,
"org.apache.directory.studio" % "org.apache.commons.codec" % "1.8",
"joda-time" % "joda-time" % "2.9.9",
"org.joda" % "joda-convert" % "1.8.1",
"org.mockito" % "mockito-all" % "1.10.19" % Test,
"org.specs2" %% "specs2-core" % Specs2Version % Test,
"org.specs2" %% "specs2-mock" % Specs2Version % Test)
lazy val IntegrationTest = config("it") extend Test
lazy val ClusterTest = config("c") extend Test
lazy val root = Project("eventstore-client", file("."),
settings = ProtobufPlugin.protobufSettings ++ SbtScalariform.scalariformSettings)
.configs(IntegrationTest, ClusterTest)
.settings(
version in ProtobufPlugin.protobufConfig := "3.0.0",
ProtobufPlugin.runProtoc in ProtobufPlugin.protobufConfig := { args =>
com.github.os72.protocjar.Protoc.runProtoc("-v3.0.0" +: args.toArray)
})
.settings(inConfig(IntegrationTest)(Defaults.testTasks): _*)
.settings(inConfig(ClusterTest)(Defaults.testTasks): _*)
.settings(
testOptions in Test := Seq(Tests.Filter(_ endsWith "Spec")),
testOptions in IntegrationTest := Seq(Tests.Filter(_ endsWith "ITest")),
testOptions in ClusterTest := Seq(Tests.Filter(_ endsWith "CTest")),
parallelExecution in IntegrationTest := false,
parallelExecution in ClusterTest := false)
coverageExcludedPackages :=
"eventstore.examples;eventstore.j;" +
"eventstore.proto;" +
"eventstore.tcp.EventStoreProtoFormats;" +
"eventstore.tcp.MarkerByte;" +
"eventstore.util.ToCoarsest"
pomExtra in Global := {
<scm>
<url>[email protected]:EventStore/EventStore.JVM.git</url>
<connection>scm:git:[email protected]:EventStore/EventStore.JVM.git</connection>
<developerConnection>scm:git:[email protected]:EventStore/EventStore.JVM.git</developerConnection>
</scm>
<developers>
<developer>
<id>t3hnar</id>
<name>Yaroslav Klymko</name>
<email>[email protected]</email>
</developer>
</developers>
}
releasePublishArtifactsAction := PgpKeys.publishSigned.value
SbtScalariform.scalariformSettings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignParameters, true)
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DoubleIndentClassDeclaration, true)