-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
91 lines (74 loc) · 2.48 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
apply plugin: 'scala'
apply plugin: 'application'
repositories {
jcenter()
maven {
url "http://packages.confluent.io/maven/"
}
}
dependencies {
//compile 'log4j:log4j:1.2.16' // Apache 2
compile 'org.slf4j:slf4j-api:1.7.25'
compile 'org.slf4j:slf4j-log4j12:1.7.25'
compile 'org.scala-lang:scala-library:2.12.8' // Apache 2
compile 'org.scala-lang.modules:scala-xml_2.12:1.1.+' // Apache 2
compile 'io.reactivex.rxjava2:rxjava:2.2.2' // Apache 2
compile 'org.apache.kafka:kafka-clients:2.1.0' // Apache 2
compile 'org.apache.kafka:kafka_2.12:2.1.0' // Apache 2
compile 'org.apache.avro:avro:1.8.2' // Apache 2
compile 'io.confluent:kafka-avro-serializer:3.3.2' //{ exclude group: 'org.slf4j' } // Apache 2
compile 'tech.allegro.schema.json2avro:converter:0.2.6' // Apache 2
compile group: 'joda-time', name: 'joda-time', version: '2.10' // Apache 2
compile 'com.fasterxml.jackson.core:jackson-core:2.9.6' // Apache 2
compile 'com.fasterxml.jackson.core:jackson-databind:2.9.6' // Apache 2
compile 'commons-cli:commons-cli:1.4' // Apache 2
compile 'org.yaml:snakeyaml:1.23' // Apache 2
testCompile "junit:junit:4.4"
testCompile "org.projectlombok:lombok:1.16.12"
}
task createProperties(dependsOn: processResources) {
doLast {
new File("$buildDir/resources/main/build.properties").withWriter { w ->
Properties p = new Properties()
p['version'] = project.version.toString()
p['url'] = project.url.toString()
p['update_url'] = project.update_url.toString()
p.store w, null
}
}
}
classes {
dependsOn createProperties
}
//mainClassName = "epam.devtools.appmonitor.montool.MonToolMain"
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
scala {
srcDirs = ['src/main/scala']
}
resources {
srcDirs = ['src/main/resources']
}
}
test {
scala {
srcDirs = ['src/test']
}
java {
srcDirs = ['src/test']
}
}
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Kafka Data Viewer full pack',
'Implementation-Version': version,
'Main-Class': 'devtools.kafka_data_viewer.KafkaDataViewer'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}