build.gradle.kts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("org.slf4j")
  7. module.set("slf4j-api")
  8. versions.set("[1.4.0,)")
  9. assertInverse.set(true)
  10. }
  11. pass {
  12. group.set("org.springframework.boot")
  13. module.set("spring-boot")
  14. // pre-1.2.0 versions don't have the Slf4JLoggingSystem
  15. versions.set("[1.2.0,)")
  16. extraDependency("org.springframework.boot:spring-boot-starter-logging")
  17. }
  18. }
  19. dependencies {
  20. bootstrap(project(":instrumentation:internal:internal-application-logger:bootstrap"))
  21. compileOnly(project(":javaagent-bootstrap"))
  22. compileOnly("org.slf4j:slf4j-api") {
  23. version {
  24. // 1.4.0 introduced the TRACE logging level
  25. strictly("1.4.0")
  26. }
  27. }
  28. if (findProperty("testLatestDeps") as Boolean) {
  29. testImplementation("ch.qos.logback:logback-classic:+")
  30. } else {
  31. testImplementation("ch.qos.logback:logback-classic") {
  32. version {
  33. strictly("1.2.11")
  34. }
  35. }
  36. testImplementation("org.slf4j:slf4j-api") {
  37. version {
  38. strictly("1.7.36")
  39. }
  40. }
  41. }
  42. testLibrary("org.springframework.boot:spring-boot-starter:2.5.3")
  43. }