-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
96 lines (88 loc) · 2.28 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
95
96
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'thrift'
apply plugin: 'distribution'
apply plugin: 'java-library-distribution'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'co.tomlee.gradle.plugins:gradle-thrift-plugin:0.0.6'
}
}
repositories {
mavenCentral()
jcenter()
flatDir { dirs 'libs' }
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.7'
compile('com.thinkaurelius.thrift:thrift-server:0.3.7' ){
exclude group: 'org.slf4j'
exclude group: 'junit'
exclude group: 'org.apache.thrift'
}
compile('org.apache.thrift:libthrift:0.9.3'){
exclude group: 'org.slf4j'
exclude group: 'org.apache.httpcomponents'
}
compile( 'org.apache.kafka:kafka_2.12:0.11.0.2'){
exclude group: 'org.slf4j'
exclude group: 'junit'
exclude group: 'org.apache.zookeeper'
exclude group: 'log4j'
}
compile( 'org.apache.kafka:kafka-clients:0.11.0.2'){
exclude group: 'org.slf4j'
exclude group: 'junit'
exclude group: 'org.apache.zookeeper'
exclude group: 'log4j'
}
runtime( 'org.apache.zookeeper:zookeeper:3.4.10'){
exclude group: 'org.slf4j'
exclude group: 'log4j'
exclude group: 'junit'
}
compile 'org.apache.commons:commons-lang3:3.3.2'
compile ':opentsdb:2.1.3@jar'
compile ':suasync:1.4.0@jar'
testCompile "junit:junit:4.11"
testCompile "org.slf4j:slf4j-log4j12:1.7.7"
testCompile "org.slf4j:jcl-over-slf4j:1.7.7"
testCompile "com.google.guava:guava:18.0"
}
//generateThriftSource {
// out file('build/generated-src/thrift/main')
// verbose false
// debug false
// strict false
//
// //
// // Set the thrift executable (optional)
// //
// //executable '/usr/bin/thrift'
//
// generators {
// //
// // --gen java:hashcode,beans
// //
// java {
// //
// // Options passed to the `java` generator
// //
// option 'hashcode'
// option 'beans'
// }
//
// }
//}
//
// optional: add generated sources as a source directory in IDEA
//
idea.module.excludeDirs = []
idea.module.sourceDirs += file('build/generated-src/thrift/main')
idea.module.jdkName = '1.8'
version='1.0.4.RC1'
sourceCompatibility = 1.8