普通文本  |  27行  |  635 B

description = 'OpenCensus Log4j 2 Log Correlation'

apply plugin: 'java'

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

    testCompile libraries.guava

    signature "org.codehaus.mojo.signature:java16:+@signature"
}

compileTestJava {
    sourceCompatibility = "1.7"
    targetCompatibility = "1.7"
}

test {
    systemProperties['log4j2.contextDataInjector'] =
        'io.opencensus.contrib.logcorrelation.log4j2.OpenCensusTraceContextDataInjector'

    // Each test class should run in a separate JVM. See the comment in
    // AbstractOpenCensusLog4jLogCorrelationTest.
    forkEvery = 1
}