build.gradle.kts 873 B

12345678910111213141516171819202122232425262728293031323334353637
  1. plugins {
  2. id("otel.library-instrumentation")
  3. }
  4. dependencies {
  5. implementation("io.opentelemetry:opentelemetry-api-logs")
  6. // pin the version strictly to avoid overriding by dependencyManagement versions
  7. compileOnly("ch.qos.logback:logback-classic") {
  8. version {
  9. strictly("1.0.0")
  10. }
  11. }
  12. compileOnly("org.slf4j:slf4j-api") {
  13. version {
  14. strictly("1.6.4")
  15. }
  16. }
  17. if (findProperty("testLatestDeps") as Boolean) {
  18. testImplementation("ch.qos.logback:logback-classic:+")
  19. } else {
  20. testImplementation("ch.qos.logback:logback-classic") {
  21. version {
  22. strictly("1.0.0")
  23. }
  24. }
  25. testImplementation("org.slf4j:slf4j-api") {
  26. version {
  27. strictly("1.6.4")
  28. }
  29. }
  30. }
  31. testImplementation("io.opentelemetry:opentelemetry-sdk-logs")
  32. testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
  33. }