forked from jaegertracing/jaeger-client-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
73 lines (60 loc) · 2.21 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
apply plugin: 'org.jruyi.thrift'
apply plugin: 'com.github.johnrengelman.shadow'
description = 'Library to send data to Jaeger backend components via Thrift'
dependencies {
compile project(':jaeger-core')
compile group: 'org.slf4j', name: 'slf4j-api', version: slf4jVersion
compile group: 'org.apache.thrift', name: 'libthrift', version: apacheThriftVersion
compile group: 'com.squareup.okhttp3', name: 'okhttp', version: okhttpVersion
testCompile group: 'junit', name: 'junit', version: junitVersion
testCompile group: 'com.tngtech.java', name: 'junit-dataprovider', version: junitDataProviderVersion
testCompile group: 'org.awaitility', name: 'awaitility', version: awaitilityVersion
testCompile group: 'org.glassfish.jersey.test-framework.providers', name: 'jersey-test-framework-provider-grizzly2', version: jerseyVersion
signature 'org.codehaus.mojo.signature:java16:1.1@signature'
}
compileThrift {
thriftExecutable "${projectDir}/../travis/docker-thrift/thrift"
sourceDir "${projectDir}/../idl/thrift"
outputDir 'src/main/gen-java'
generator 'java', 'private-members'
createGenFolder false
}
tasks.withType(Javadoc) {
enabled = false
}
sourceSets {
main {
java {
srcDir 'src/main/gen-java'
}
}
}
licenseMain.enabled = false
checkstyleMain.enabled = false
checkstyleTest.enabled = false
shadowJar {
relocate 'com.google.gson' , 'io.jaegertracing.vendor.com.google.gson'
relocate 'com.twitter' , 'io.jaegertracing.vendor.com.twitter'
relocate 'okhttp' , 'io.jaegertracing.vendor.okhttp'
relocate 'okio' , 'io.jaegertracing.vendor.okio'
relocate 'org.apache' , 'io.jaegertracing.vendor.org.apache'
classifier 'shadow'
dependencies {
exclude(dependency('org.slf4j:slf4j-api'))
exclude(dependency('org.projectlombok:lombok'))
exclude(dependency('org.codehaus.mojo:animal-sniffer-annotations'))
}
}
task testJar(type: Jar, dependsOn: testClasses) {
baseName = "test-${project.archivesBaseName}"
from sourceSets.test.output
}
configurations {
tests
}
artifacts {
archives(shadowJar.archivePath) {
builtBy shadowJar
}
tests testJar
}