57 lines
1.4 KiB
Plaintext
57 lines
1.4 KiB
Plaintext
plugins {
|
|
id("org.xbib.gradle.plugin.jflex")
|
|
|
|
id("otel.java-conventions")
|
|
id("otel.animalsniffer-conventions")
|
|
id("otel.jacoco-conventions")
|
|
id("otel.japicmp-conventions")
|
|
id("otel.publish-conventions")
|
|
}
|
|
|
|
group = "io.opentelemetry.instrumentation"
|
|
|
|
dependencies {
|
|
api("io.opentelemetry.semconv:opentelemetry-semconv")
|
|
api(project(":instrumentation-api"))
|
|
implementation("io.opentelemetry:opentelemetry-api-incubator")
|
|
|
|
compileOnly("com.google.auto.value:auto-value-annotations")
|
|
annotationProcessor("com.google.auto.value:auto-value")
|
|
|
|
testImplementation(project(":testing-common"))
|
|
testImplementation("io.opentelemetry:opentelemetry-sdk")
|
|
testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
|
|
testImplementation("io.opentelemetry.semconv:opentelemetry-semconv-incubating")
|
|
}
|
|
|
|
tasks {
|
|
// exclude auto-generated code
|
|
named<Checkstyle>("checkstyleMain") {
|
|
exclude("**/AutoSqlSanitizer.java")
|
|
}
|
|
|
|
// Work around https://github.com/jflex-de/jflex/issues/762
|
|
compileJava {
|
|
with(options) {
|
|
compilerArgs.add("-Xlint:-fallthrough")
|
|
}
|
|
}
|
|
|
|
sourcesJar {
|
|
dependsOn("generateJflex")
|
|
}
|
|
|
|
val testStableSemconv by registering(Test::class) {
|
|
jvmArgs("-Dotel.semconv-stability.opt-in=database")
|
|
}
|
|
|
|
val testBothSemconv by registering(Test::class) {
|
|
jvmArgs("-Dotel.semconv-stability.opt-in=database/dup")
|
|
}
|
|
|
|
check {
|
|
dependsOn(testStableSemconv)
|
|
dependsOn(testBothSemconv)
|
|
}
|
|
}
|