forked from linkedin/kafka-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
73 lines (59 loc) · 1.58 KB
/
build.gradle
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
allprojects {
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java'
apply plugin: 'checkstyle'
version = "1.0.0"
sourceCompatibility = 1.7
repositories {
mavenCentral()
}
dependencies {
compile 'net.sourceforge.argparse4j:argparse4j:0.5.0'
compile 'org.slf4j:slf4j-log4j12:1.7.6'
compile 'org.apache.avro:avro:1.4.0'
compile 'org.apache.kafka:kafka_2.11:0.10.1.1'
compile 'org.apache.kafka:kafka-clients:0.10.1.1'
compile 'org.testng:testng:6.8.8'
compile 'org.eclipse.jetty:jetty-server:8.1.19.v20160209'
compile 'org.json:json:20140107'
compile 'com.fasterxml.jackson.core:jackson-databind:2.7.1'
compile 'org.jolokia:jolokia-jvm:1.3.3'
compile 'net.savantly:graphite-client:1.1.0-RELEASE'
compile 'com.timgroup:java-statsd-client:3.0.1'
testCompile 'org.testng:testng:6.8.8'
}
tasks.create(name: "copyDependantLibs", type: Copy) {
from (configurations.testRuntime) {
include('slf4j-log4j12*')
}
from (configurations.runtime) {
}
into "build/dependant-libs"
duplicatesStrategy 'exclude'
}
jar {
dependsOn 'copyDependantLibs'
}
task testJar(type: Jar) {
classifier = 'test'
from sourceSets.test.output
}
artifacts {
archives testJar
}
checkstyle {
configFile = new File(rootDir, "checkstyle/checkstyle.xml")
}
test.dependsOn('checkstyleMain', 'checkstyleTest')
test {
useTestNG()
testLogging {
events "passed", "skipped", "failed"
exceptionFormat = 'full'
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.11'
}