forked from zio/zio-kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
56 lines (49 loc) · 1.91 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
val mainScala = "2.12.10"
val allScala = Seq("2.11.12", mainScala)
inThisBuild(
List(
organization := "dev.zio",
homepage := Some(url("https://github.com/zio/zio-kafka")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
useCoursier := false,
scalaVersion := mainScala,
crossScalaVersions := allScala,
parallelExecution in Test := false,
fork in Test := true,
fork in run := true,
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc"),
pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray),
scmInfo := Some(
ScmInfo(url("https://github.com/zio/zio-kafka/"), "scm:git:[email protected]:zio/zio-kafka.git")
),
developers := List(
Developer(
"iravid",
"Itamar Ravid",
url("https://github.com/iravid")
)
)
)
)
ThisBuild / publishTo := sonatypePublishToBundle.value
name := "zio-kafka"
scalafmtOnCompile := true
enablePlugins(BuildInfoPlugin)
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion, isSnapshot)
buildInfoPackage := "zio.kafka"
buildInfoObject := "BuildInfo"
libraryDependencies ++= Seq(
"dev.zio" %% "zio-streams" % "1.0.0-RC17",
"dev.zio" %% "zio-test" % "1.0.0-RC17" % "test",
"dev.zio" %% "zio-test-sbt" % "1.0.0-RC17" % "test",
"org.apache.kafka" % "kafka-clients" % "2.3.1",
// "org.scalatest" %% "scalatest" % "3.0.5" % "test",
"io.github.embeddedkafka" %% "embedded-kafka" % "2.3.1" % "test",
"ch.qos.logback" % "logback-classic" % "1.2.3" % "test",
compilerPlugin("org.typelevel" %% "kind-projector" % "0.10.0")
)
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework")
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")