1description = 'OpenCensus Log4j 2 Log Correlation' 2 3apply plugin: 'java' 4 5dependencies { 6 compile project(':opencensus-api'), 7 libraries.log4j2 8 9 testCompile libraries.guava 10 11 signature "org.codehaus.mojo.signature:java16:+@signature" 12} 13 14compileTestJava { 15 sourceCompatibility = "1.7" 16 targetCompatibility = "1.7" 17} 18 19test { 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