|
| 1 | +plugins { |
| 2 | + id("me.champeau.jmh") |
| 3 | + id("java-library") |
| 4 | +} |
| 5 | + |
| 6 | +apply(from = "$rootDir/gradle/java.gradle") |
| 7 | + |
| 8 | +val minimumBranchCoverage by extra(0.6) |
| 9 | +val minimumInstructionCoverage by extra(0.8) |
| 10 | +val excludedClassesCoverage by extra( |
| 11 | + listOf( |
| 12 | + "datadog.telemetry.TelemetryRunnable.ThreadSleeperImpl", |
| 13 | + "datadog.telemetry.HostInfo", |
| 14 | + "datadog.telemetry.HostInfo.Os", |
| 15 | + "datadog.telemetry.dependency.LocationsCollectingTransformer", |
| 16 | + "datadog.telemetry.dependency.JbossVirtualFileHelper", |
| 17 | + "datadog.telemetry.RequestBuilder.NumberJsonAdapter", |
| 18 | + "datadog.telemetry.RequestBuilderSupplier", |
| 19 | + "datadog.telemetry.TelemetrySystem", |
| 20 | + "datadog.telemetry.api.*", |
| 21 | + "datadog.telemetry.metric.CiVisibilityMetricPeriodicAction" |
| 22 | + ) |
| 23 | +) |
| 24 | +val excludedClassesBranchCoverage by extra( |
| 25 | + listOf( |
| 26 | + "datadog.telemetry.PolymorphicAdapterFactory.1", |
| 27 | + "datadog.telemetry.HostInfo", |
| 28 | + "datadog.telemetry.HostInfo.Os" |
| 29 | + ) |
| 30 | +) |
| 31 | +val excludedClassesInstructionCoverage by extra(emptyList<String>()) |
| 32 | + |
| 33 | +dependencies { |
| 34 | + implementation(libs.slf4j) |
| 35 | + |
| 36 | + implementation(project(":internal-api")) |
| 37 | + |
| 38 | + compileOnly(project(":dd-java-agent:agent-tooling")) |
| 39 | + testImplementation(project(":dd-java-agent:agent-tooling")) |
| 40 | + testImplementation(project(":dd-java-agent:agent-logging")) |
| 41 | + |
| 42 | + compileOnly(project(":communication")) |
| 43 | + testImplementation(project(":communication")) |
| 44 | + |
| 45 | + compileOnly(project(":utils:container-utils")) |
| 46 | + testImplementation(project(":utils:container-utils")) |
| 47 | + |
| 48 | + api(libs.okhttp) |
| 49 | + api(libs.moshi) |
| 50 | + |
| 51 | + testImplementation(project(":utils:test-utils")) |
| 52 | + testImplementation(group = "org.hamcrest", name = "hamcrest", version = "2.2") |
| 53 | + testImplementation(group = "org.jboss", name = "jboss-vfs", version = "3.2.16.Final") |
| 54 | +} |
| 55 | + |
| 56 | +jmh { |
| 57 | + jmhVersion = "1.28" |
| 58 | + duplicateClassesStrategy = DuplicatesStrategy.EXCLUDE |
| 59 | +} |
0 commit comments