build.gradle.kts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. plugins {
  2. id("org.xbib.gradle.plugin.jflex")
  3. id("otel.java-conventions")
  4. id("otel.jacoco-conventions")
  5. id("otel.publish-conventions")
  6. }
  7. sourceSets {
  8. main {
  9. java {
  10. // gradle-jflex-plugin has a bug in that it always looks for the last srcDir in this source
  11. // set to generate into. By default it would be the src/main directory itself.
  12. srcDir("$buildDir/generated/sources/jflex")
  13. }
  14. val cachingShadedDeps = project(":instrumentation-api-caching")
  15. output.dir(cachingShadedDeps.file("build/extracted/shadow"), "builtBy" to ":instrumentation-api-caching:extractShadowJar")
  16. }
  17. }
  18. group = "io.opentelemetry.instrumentation"
  19. dependencies {
  20. compileOnly(project(":instrumentation-api-caching"))
  21. api("io.opentelemetry:opentelemetry-api")
  22. api("io.opentelemetry:opentelemetry-semconv")
  23. implementation("io.opentelemetry:opentelemetry-api-metrics")
  24. implementation("org.slf4j:slf4j-api")
  25. compileOnly("com.google.auto.value:auto-value-annotations")
  26. annotationProcessor("com.google.auto.value:auto-value")
  27. testCompileOnly(project(":instrumentation-api-caching"))
  28. testImplementation(project(":testing-common"))
  29. testImplementation("org.mockito:mockito-core")
  30. testImplementation("org.mockito:mockito-junit-jupiter")
  31. testImplementation("org.assertj:assertj-core")
  32. testImplementation("org.awaitility:awaitility")
  33. testImplementation("io.opentelemetry:opentelemetry-sdk-metrics")
  34. testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
  35. }