-
Notifications
You must be signed in to change notification settings - Fork 24
/
build.sbt
95 lines (81 loc) · 2.84 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
lazy val commonSettings = Seq(
organization := "com.madewithtea",
version := "3.9.0",
scalaVersion := "2.12.13",
crossScalaVersions := List("2.12.10", "2.13.1"),
description := "Topology Unit-Testing Library for Kafka Streams",
organizationHomepage := Some(url("https://www.madewithtea.com")),
scalacOptions := Seq("-deprecation","-feature")
)
val scalaTestVersion = "3.0.8"
val rocksDBVersion = "5.18.4"
val kafkaVersion = "2.7.0"
lazy val kafka = Seq(
"org.apache.kafka" % "kafka-clients" % kafkaVersion,
"org.apache.kafka" % "kafka-clients" % kafkaVersion classifier "test",
"org.apache.kafka" % "kafka-streams" % kafkaVersion,
"org.apache.kafka" %% "kafka-streams-scala" % kafkaVersion,
"org.apache.kafka" % "kafka-streams-test-utils" % kafkaVersion,
"org.apache.kafka" %% "kafka" % kafkaVersion
)
lazy val scalaTest = "org.scalatest" %% "scalatest" % scalaTestVersion % "test"
lazy val rocksDB = "org.rocksdb" % "rocksdbjni" % rocksDBVersion % "test"
Global / useGpg := false
lazy val mockedstreams = (project in file("."))
.settings(commonSettings: _*)
.settings(
libraryDependencies ++= Seq(
scalaTest,
rocksDB
) ++ kafka
)
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ =>
false
}
pomExtra :=
<url>https://www.madewithtea.com/pages/mocked-streams.html</url>
<licenses>
<license>
<name>Apache License Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>jpzk</id>
<name>Jendrik Poloczek</name>
<url>https://www.madewithtea.com</url>
</developer>
</developers>
micrositeName := "Mocked Streams"
micrositeDescription := "Unit-Testing Topologies in Kafka Streams"
micrositeUrl := "http://mockedstreams.madewithtea.com"
micrositeBaseUrl := ""
micrositeTheme := "pattern"
micrositeDocumentationUrl := "/docs"
micrositeGitterChannel := false
micrositeDocumentationLabelDescription := "Documentation"
micrositeCompilingDocsTool := WithMdoc
micrositeDataDirectory := (resourceDirectory in Compile).value / "docs" / "data"
micrositeGithubOwner := "jpzk"
micrositeGithubRepo := "mockedstreams"
micrositeAuthor := "Jendrik Poloczek"
micrositeTwitter := "@madewithtea"
micrositeTwitterCreator := "@madewithtea"
micrositeCompilingDocsTool := WithMdoc
micrositeShareOnSocial := true
lazy val docs = project // new documentation project
.in(file("ms-docs")) // important: it must not be docs/
.dependsOn(mockedstreams)
.enablePlugins(MdocPlugin)
enablePlugins(MicrositesPlugin)