-
Notifications
You must be signed in to change notification settings - Fork 22
/
build.sbt
99 lines (81 loc) · 3.3 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
96
97
98
99
organization := "com.github.dcshock"
name := "forklift-kafka"
version := "2.0"
//required for some test dependencies
scalaVersion := "2.11.7"
javacOptions ++= Seq("-source", "1.8")
javacOptions in compile ++= Seq("-g:lines,vars,source")
initialize := {
val _ = initialize.value
if (sys.props("java.specification.version") != "1.8")
sys.error("Java 8 is required for this project.")
}
resolvers ++= Seq(
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
"Maven Central" at "http:https://repo1.maven.org/maven2",
"Fuse Snapshots" at "http:https://repo.fusesource.com/nexus/content/repositories/snapshots",
"Fuse" at "http:https://repo.fusesource.com/nexus/content/groups/public",
"Confluent Maven Repo" at "http:https://packages.confluent.io/maven/"
)
libraryDependencies ++= Seq(
"com.github.dcshock" % "forklift" % "2.0" ,
"com.fasterxml.jackson.core" % "jackson-databind" % "2.7.3",
"com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.7.3",
"org.apache.kafka" % "kafka-clients" % "0.10.1.1-cp1" exclude("org.slf4j","slf4j-log4j12"),
"io.confluent" % "kafka-avro-serializer" % "3.1.1" exclude("org.slf4j","slf4j-log4j12"),
"org.apache.avro" % "avro" % "1.8.1"
)
lazy val testDependencies = Seq(
"commons-io" % "commons-io" % "2.4" ,
"com.novocode" % "junit-interface" % "0.11",
"commons-net" % "commons-net" % "3.6",
"org.mockito" % "mockito-core" % "1.9.5",
"io.confluent" % "kafka-schema-registry" % "3.1.1" exclude("org.slf4j","slf4j-log4j12"),
"org.apache.zookeeper" % "zookeeper" % "3.4.9" exclude("org.slf4j","slf4j-log4j12"),
//Added as it looks like the schema registry has a hard coded dependency on a log4j class that the bridge does not help with
"log4j" % "log4j" % "1.2.14"
)
libraryDependencies ++= testDependencies.map(_ % "test")
// Integration tests use embedded servers. We can only allow one instance at a time
// so disable parallel test execution
parallelExecution in Test := false
testOptions += Tests.Argument(TestFrameworks.JUnit, "-v", "-a")
// avro settings
(javaSource in avroConfig) := baseDirectory(_/"target/generated-sources").value
(sourceDirectory in avroConfig) := baseDirectory(_/"src/test/resources/schemas").value
// Remove scala dependency for pure Java libraries
autoScalaLibrary := false
// Remove the scala version from the generated/published artifact
crossPaths := false
publishMavenStyle := true
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")
}
pomIncludeRepository := { _ => false }
pomExtra := (
<url>https://github.com/dcshock/forklift-kafka</url>
<licenses>
<license>
<name>BSD-style</name>
<url>http:https://www.opensource.org/licenses/bsd-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:dcshock/forklift-kafka.git</url>
<connection>scm:git:[email protected]:dcshock/forklift-kafka.git</connection>
</scm>
<developers>
<developer>
<id>afrieze</id>
<name>Andrew Frieze</name>
</developer>
<developer>
<id>kuroshii</id>
<name>Bridger Howell</name>
</developer>
</developers>)