-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
51 lines (40 loc) · 1.12 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
plugins {
id 'java'
id "com.github.sherter.google-java-format" version "0.8"
id "net.ltgt.errorprone" version "0.0.13"
}
group 'com.github.rajeshbr'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'com.github.sherter.google-java-format'
sourceCompatibility = 1.8
googleJavaFormat {
toolVersion '1.6'
include '**/*.java'
exclude '**/generated-sources/*'
}
compileJava {
dependsOn 'googleJavaFormat'
options.encoding = 'UTF-8'
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" << "-XepExcludedPaths:" +
".*/generated-sources/.*"
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.apache.kafka', name: 'kafka_2.12', version: '2.2.0'
compile 'org.apache.kafka:kafka-clients:2.2.0'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
task execute(type: JavaExec) {
if (project.hasProperty("appArgs")) {
args Eval.me(appArgs)
}
main = findProperty("mainClass") ?: ""
classpath = sourceSets.main.runtimeClasspath
}