-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.sbt
58 lines (57 loc) · 1.96 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
import sbt._
import sbt.Keys._
lazy val `kafka-jdbc-connector` =
(project in file("."))
.settings(
name := "kafka-jdbc-connector",
version := "1.2.0",
organization := "com.agoda",
scalaVersion := "2.11.7",
crossScalaVersions := Seq("2.11.7", "2.12.2"),
libraryDependencies ++= Dependencies.Compile.kafkaJdbcConnector ++ Dependencies.Test.kafkaJdbcConnector,
fork in Test := true
)
.enablePlugins(BuildInfoPlugin)
.settings(
buildInfoKeys := Seq[BuildInfoKey](version),
buildInfoPackage := organization.value
)
.settings(
test in assembly := {},
assemblyJarName in assembly := s"kafka-jdbc-connector-${version.value}.jar"
)
.settings(
useGpg := true,
pgpPublicRing := file("~/.sbt/gpg/pubring.asc"),
pgpSecretRing := file("~/.sbt/gpg/secring.asc"),
publishTo := Some(
if (isSnapshot.value) Opts.resolver.sonatypeSnapshots
else Opts.resolver.sonatypeStaging
),
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
publishMavenStyle := true,
licenses := Seq("Apache 2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0")),
homepage := Some(url("https://github.com/agoda-com/kafka-jdbc-connector")),
scmInfo := Some(
ScmInfo(
url("https://github.com/agoda-com/kafka-jdbc-connector"),
"scm:[email protected]:agoda-com/kafka-jdbc-connector.git"
)
),
developers := List(
Developer(
id="arpanchaudhury",
name="Arpan Chaudhury",
email="[email protected]",
url=url("https://github.com/arpanchaudhury")
)
)
)
.settings(
coverageExcludedPackages := Seq(
"com.agoda.BuildInfo",
"com.agoda.kafka.connector.jdbc.JdbcSourceConnector",
"com.agoda.kafka.connector.jdbc.JdbcSourceTask",
"com.agoda.kafka.connector.jdbc.utils.Version"
).mkString(";")
)