-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
57 lines (45 loc) · 1.34 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
plugins {
id 'java'
id 'application'
id "com.github.ben-manes.versions" version "0.21.0"
}
repositories {
mavenCentral()
}
sourceCompatibility = '11'
targetCompatibility = '11'
version = '1.4.0-SNAPSHOT'
dependencies {
compile 'ch.qos.logback:logback-classic:1.2.3'
compile 'net.logstash.logback:logstash-logback-encoder:5.3'
compile 'org.codehaus.janino:janino:3.0.12'
compile 'com.typesafe:config:1.3.4'
compile 'io.prometheus:simpleclient:0.6.0'
compile 'io.prometheus:simpleclient_httpserver:0.6.0'
compile 'io.prometheus:simpleclient_hotspot:0.6.0'
compile 'org.apache.kafka:kafka-clients:2.2.0'
compile 'org.apache.kafka:kafka_2.12:2.2.0'
compile 'org.slf4j:slf4j-api:1.7.25'
implementation 'commons-io:commons-io:2.6'
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
task uberJar(type: Jar) {
appendix = 'uber'
manifest {
attributes 'Main-Class': 'me.frmr.kafkahawk.Main'
}
from sourceSets.main.output
from configurations.runtimeClasspath.
findAll { it.name.endsWith('jar') }.
collect { zipTree(it) }
}
mainClassName = "me.frmr.kafkahawk.Main"
tasks.withType(JavaCompile) {
options.compilerArgs += ['-Xlint:deprecation']
}