普通文本  |  38行  |  1.05 KB

description = 'OpenCensus Trace Jaeger Exporter'

[compileJava, compileTestJava].each() {
    it.sourceCompatibility = 1.6
    it.targetCompatibility = 1.6
}

// Docker tests require JDK 8+
sourceSets {
    test {
        java {
            if (!JavaVersion.current().isJava8Compatible()) {
                exclude '**/JaegerExporterHandlerIntegrationTest.java'
            }
        }
    }
}

dependencies {
    compile project(':opencensus-api'),
            libraries.guava

    compile(libraries.jaeger_reporter) {
        // Prefer library version.
        exclude group: 'com.google.guava', module: 'guava'
    }

    testCompile project(':opencensus-api'),
            'org.testcontainers:testcontainers:1.7.0',
            'com.google.http-client:google-http-client-gson:1.23.0'

    // Unless linked to impl, spans will be blank and not exported during integration tests.
    testRuntime project(':opencensus-impl')

    signature "org.codehaus.mojo.signature:java17:1.0@signature"
    signature "net.sf.androidscents.signature:android-api-level-14:4.0_r4@signature"
}