Home | History | Annotate | Download | only in log4j2
      1 description = 'OpenCensus Log4j 2 Log Correlation'
      2 
      3 apply plugin: 'java'
      4 
      5 dependencies {
      6     compile project(':opencensus-api'),
      7             libraries.log4j2
      8 
      9     testCompile libraries.guava
     10 
     11     signature "org.codehaus.mojo.signature:java16:+@signature"
     12 }
     13 
     14 compileTestJava {
     15     sourceCompatibility = "1.7"
     16     targetCompatibility = "1.7"
     17 }
     18 
     19 test {
     20     systemProperties['log4j2.contextDataInjector'] =
     21         'io.opencensus.contrib.logcorrelation.log4j2.OpenCensusTraceContextDataInjector'
     22 
     23     // Each test class should run in a separate JVM. See the comment in
     24     // AbstractOpenCensusLog4jLogCorrelationTest.
     25     forkEvery = 1
     26 }
     27