build.gradle.kts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. plugins {
  2. id("org.xbib.gradle.plugin.jflex")
  3. id("otel.java-conventions")
  4. id("otel.animalsniffer-conventions")
  5. id("otel.jacoco-conventions")
  6. id("otel.japicmp-conventions")
  7. id("otel.publish-conventions")
  8. }
  9. group = "io.opentelemetry.instrumentation"
  10. dependencies {
  11. api("io.opentelemetry.semconv:opentelemetry-semconv")
  12. api(project(":instrumentation-api"))
  13. implementation("io.opentelemetry:opentelemetry-api-incubator")
  14. compileOnly("com.google.auto.value:auto-value-annotations")
  15. annotationProcessor("com.google.auto.value:auto-value")
  16. testImplementation(project(":testing-common"))
  17. testImplementation("io.opentelemetry:opentelemetry-sdk")
  18. testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
  19. }
  20. tasks {
  21. // exclude auto-generated code
  22. named<Checkstyle>("checkstyleMain") {
  23. exclude("**/AutoSqlSanitizer.java")
  24. }
  25. // Work around https://github.com/jflex-de/jflex/issues/762
  26. compileJava {
  27. with(options) {
  28. compilerArgs.add("-Xlint:-fallthrough")
  29. }
  30. }
  31. sourcesJar {
  32. dependsOn("generateJflex")
  33. }
  34. }