aboutsummaryrefslogtreecommitdiff
path: root/contrib/log_correlation/log4j2/build.gradle
blob: 4a4a6ebca776e16aeaa62978b2baafa3bb102299 (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 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
}