-
Notifications
You must be signed in to change notification settings - Fork 115
/
build.sbt
85 lines (75 loc) · 2.93 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
lazy val commonSettings = Seq(
organization := "net.cakesolutions",
scalaVersion := "2.12.10",
crossScalaVersions := Seq("2.11.12", "2.12.10", "2.13.1"),
publishMavenStyle := true,
bintrayOrganization := Some("cakesolutions"),
bintrayPackageLabels := Seq("scala", "kafka"),
// resolvers += "Apache Staging" at "https://repository.apache.org/content/groups/staging/",
resolvers += Resolver.bintrayRepo("mockito", "maven"),
scalacOptions in Compile ++= Seq(
"-encoding", "UTF-8",
"-target:jvm-1.8",
"-feature",
"-deprecation",
"-unchecked",
"-Xlint",
"-Ywarn-dead-code",
"-Ywarn-unused"
) ++ (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 13)) => Seq()
case _ => Seq("-Xfuture", "-Ywarn-unused-import", "-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>git@github.com:cakesolutions/scala-kafka-client.git</url>
<connection>scm:git:git@github.com: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 scalaKafkaClientExamples = project.in(file("examples"))
.settings(commonSettings: _*)
.dependsOn(scalaKafkaClientAkka)
lazy val root = project.in(file("."))
.settings(commonSettings: _*)
.enablePlugins(ScalaUnidocPlugin)
.settings(name := "scala-kafka-client-root", publishArtifact := false, publish := {}, publishLocal := {})
.aggregate(scalaKafkaClient, scalaKafkaClientAkka, kafkaTestkit)