forked from jaegertracing/jaeger-client-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
41 lines (32 loc) · 1.68 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
description = 'Core library for jaeger-client'
dependencies {
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
// 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'
}
task testJar(type: Jar, dependsOn: testClasses) {
baseName = "test-${project.archivesBaseName}"
from sourceSets.test.output
}
configurations {
tests
}
task jaegerVersion {
doLast {
def dirPath = 'src/main/resources/io/jaegertracing/internal/'
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