build.gradle.kts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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("io.opentelemetry.semconv:opentelemetry-semconv-incubating")
  13. api(project(":instrumentation-api"))
  14. implementation("io.opentelemetry:opentelemetry-api-incubator")
  15. compileOnly("com.google.auto.value:auto-value-annotations")
  16. annotationProcessor("com.google.auto.value:auto-value")
  17. testImplementation(project(":testing-common"))
  18. testImplementation("io.opentelemetry:opentelemetry-sdk")
  19. testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
  20. }
  21. tasks {
  22. // exclude auto-generated code
  23. named<Checkstyle>("checkstyleMain") {
  24. exclude("**/AutoSqlSanitizer.java")
  25. }
  26. // Work around https://github.com/jflex-de/jflex/issues/762
  27. compileJava {
  28. with(options) {
  29. compilerArgs.add("-Xlint:-fallthrough")
  30. }
  31. }
  32. sourcesJar {
  33. dependsOn("generateJflex")
  34. }
  35. }