aboutsummaryrefslogtreecommitdiff
path: root/contrib/log_correlation/log4j/build.gradle
blob: a832e14637b0e04e27941e9fd7a87e6c272cf0fe (plain)
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
description = 'OpenCensus Log4j Log Correlation'

apply plugin: 'java'

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

    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.log4j.OpenCensusTraceContextDataInjector'

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