forked from linkedin/kafka-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
94 lines (75 loc) · 1.76 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
allprojects {
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java'
apply plugin: 'checkstyle'
sourceCompatibility = 1.7
repositories {
mavenCentral()
}
checkstyle {
configFile = new File(rootDir, "checkstyle/checkstyle.xml")
}
test.dependsOn('checkstyleMain', 'checkstyleTest')
test {
useTestNG()
testLogging {
events "passed", "skipped", "failed"
exceptionFormat = 'full'
}
}
}
project(':services') {
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.0.1'
compile 'org.apache.kafka:kafka-clients:0.10.0.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'
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
}
}
project(':tests') {
dependencies {
compile project(':services')
}
test {
useTestNG()
testLogging {
events "passed", "skipped", "failed"
exceptionFormat = 'full'
}
}
}
project(':core') {
dependencies {
compile project(':tests')
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.11'
}