forked from cakesolutions/scala-kafka-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
78 lines (69 loc) · 2.49 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
lazy val commonSettings = Seq(
organization := "net.cakesolutions",
scalaVersion := "2.11.8",
publishMavenStyle := true,
bintrayOrganization := Some("cakesolutions"),
bintrayPackageLabels := Seq("scala", "kafka"),
scalacOptions in Compile ++= Seq(
"-encoding", "UTF-8",
"-target:jvm-1.8",
"-feature",
"-deprecation",
"-unchecked",
"-Xlint",
"-Xfuture",
"-Ywarn-dead-code",
"-Ywarn-unused-import",
"-Ywarn-unused",
"-Ywarn-nullary-unit"
),
scalacOptions in (Compile, doc) ++= Seq("-groups", "-implicits"),
javacOptions in (Compile, doc) ++= Seq("-notimestamp", "-linksource"),
autoAPIMappings := true,
// publishTo :=
//TODO publish snapshots to OSS
// if (Version.endsWith("-SNAPSHOT"))
// Seq(
// publishTo := Some("Artifactory Realm" at "http://oss.jfrog.org/artifactory/oss-snapshot-local"),
// bintrayReleaseOnPublish := false,
// // Only setting the credentials file if it exists (#52)
// credentials := List(Path.userHome / ".bintray" / ".artifactory").filter(_.exists).map(Credentials(_))
// )
// else
parallelExecution in Test := false,
parallelExecution in IntegrationTest := true,
publishArtifact in Test := false,
pomExtra := <scm>
<url>[email protected]:cakesolutions/scala-kafka-client.git</url>
<connection>scm:git:[email protected]:cakesolutions/scala-kafka-client.git</connection>
</scm>
<developers>
<developer>
<id>simon</id>
<name>Simon Souter</name>
<url>https://github.com/simonsouter</url>
</developer>
<developer>
<id>jkpl</id>
<name>Jaakko Pallari</name>
<url>https://github.com/jkpl</url>
</developer>
</developers>,
licenses := ("MIT", url("http://opensource.org/licenses/MIT")) :: Nil
)
lazy val kafkaTestkit = project.in(file("testkit"))
.settings(commonSettings: _*)
lazy val scalaKafkaClient = project.in(file("client"))
.settings(commonSettings: _*)
.dependsOn(kafkaTestkit % "test")
.configs(IntegrationTest extend Test)
lazy val scalaKafkaClientAkka = project.in(file("akka"))
.settings(commonSettings: _*)
.dependsOn(scalaKafkaClient)
.dependsOn(kafkaTestkit % "test")
.configs(IntegrationTest extend Test)
lazy val root = project.in(file("."))
.settings(commonSettings: _*)
.settings(unidocSettings: _*)
.settings(name := "scala-kafka-client-root", publishArtifact := false, publish := {}, publishLocal := {})
.aggregate(scalaKafkaClient, scalaKafkaClientAkka, kafkaTestkit)