build.gradle.kts 763 B

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