forked from jaegertracing/jaeger-client-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (47 loc) · 2.11 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
description = 'Core library for jaeger-client'
dependencies {
compile project(':jaeger-thrift')
compile group: 'io.opentracing', name: 'opentracing-api', version: opentracingVersion
compile group: 'io.opentracing', name: 'opentracing-util', version: opentracingVersion
compile group: 'com.google.code.gson', name: 'gson', version: gsonVersion
compile group: 'org.slf4j', name: 'slf4j-api', version: slf4jVersion
compile group: 'com.squareup.okhttp3', name: 'okhttp', version: okhttpVersion
// Testing frameworks
testCompile project(path: ':jaeger-thrift', configuration: 'tests')
// Jersey dependencies for unit tests
testCompile group: 'org.glassfish.jersey.test-framework.providers', name: 'jersey-test-framework-provider-grizzly2', version: jerseyVersion
testCompile group: 'junit', name: 'junit', version: junitVersion
testCompile group: 'org.mockito', name: 'mockito-core', version: mockitoVersion
testCompile group: 'com.tngtech.java', name: 'junit-dataprovider', version: junitDataProviderVersion
testCompile group: 'org.awaitility', name: 'awaitility', version: awaitilityVersion
testCompile group: 'ch.qos.logback', name: 'logback-classic', version: logbackVersion
testCompile group: 'io.micrometer', name: 'micrometer-registry-prometheus', version: micrometerVersion
signature 'org.codehaus.mojo.signature:java16:1.1@signature'
}
apply plugin: 'com.github.johnrengelman.shadow'
shadowJar {
relocate 'okhttp', 'jaeger.okhttp'
classifier 'okhttp381'
}
task testJar(type: Jar, dependsOn: testClasses) {
baseName = "test-${project.archivesBaseName}"
from sourceSets.test.output
}
configurations {
tests
}
artifacts {
archives(shadowJar.archivePath) {
builtBy shadowJar
}
tests testJar
}
task jaegerVersion {
doLast {
def dirPath = 'src/main/resources/io/jaegertracing/'
new File(projectDir, dirPath).mkdirs()
def propFile = new File(projectDir, "${dirPath}jaeger.properties").getAbsolutePath()
new File(propFile).write("jaeger.version=${project.version}")
}
}
compileJava.dependsOn jaegerVersion