123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import net.ltgt.gradle.errorprone.errorprone
- plugins {
- id("otel.java-conventions")
- id("otel.animalsniffer-conventions")
- id("otel.jacoco-conventions")
- id("otel.japicmp-conventions")
- id("otel.publish-conventions")
- id("otel.jmh-conventions")
- }
- group = "io.opentelemetry.instrumentation"
- dependencies {
- api("io.opentelemetry:opentelemetry-api")
- implementation("io.opentelemetry:opentelemetry-api-incubator")
- implementation("io.opentelemetry.semconv:opentelemetry-semconv")
- compileOnly("com.google.auto.value:auto-value-annotations")
- annotationProcessor("com.google.auto.value:auto-value")
- testImplementation(project(":testing-common"))
- testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
- testImplementation("io.opentelemetry:opentelemetry-exporter-common")
- testImplementation("org.junit-pioneer:junit-pioneer")
- jmhImplementation(project(":instrumentation-api-incubator"))
- }
- tasks {
- named<Checkstyle>("checkstyleMain") {
- exclude("**/concurrentlinkedhashmap/**")
- }
- // TODO this should live in jmh-conventions
- named<JavaCompile>("jmhCompileGeneratedClasses") {
- options.errorprone {
- isEnabled.set(false)
- }
- }
- withType<Test>().configureEach {
- // required on jdk17
- jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
- jvmArgs("--add-opens=java.base/java.util=ALL-UNNAMED")
- jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
- }
- }
|