// Set properties before any plugins get loaded ext { jmcVersion = '8.0.0-SNAPSHOT' } apply from: "${rootDir}/gradle/java.gradle" excludedClassesCoverage += [ // This is just a static declaration that is hard to test 'com.datadog.profiling.uploader.VersionInfo', // Large parts of this class are jvm specific which makes jacoco really confused since we run it only for 'default' jvm 'com.datadog.profiling.uploader.util.PidHelper' ] dependencies { compile deps.slf4j compile project(':dd-trace-api') compile project(':dd-java-agent:agent-profiling:profiling-controller') compile "org.openjdk.jmc:common:$jmcVersion" compile deps.guava compile deps.okhttp compile group: 'com.github.jnr', name: 'jnr-posix', version: '3.0.52' compile group: 'org.lz4', name: 'lz4-java', version: '1.7.1' testCompile deps.junit5 testCompile project(':dd-java-agent:agent-profiling:profiling-testing') testCompile deps.mockito testCompile group: 'com.squareup.okhttp3', name: 'mockwebserver', version: versions.okhttp } /* We use Java8 features, but there is no code needing JFR libraries */ sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8