build.gradle.kts 949 B

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