build.gradle.kts 802 B

12345678910111213141516171819202122232425
  1. plugins {
  2. id("otel.library-instrumentation")
  3. }
  4. val versions: Map<String, String> by project
  5. val springBootVersion = versions["org.springframework.boot"]
  6. dependencies {
  7. compileOnly("org.springframework:spring-webmvc:5.3.0")
  8. compileOnly("javax.servlet:javax.servlet-api:4.0.1")
  9. testImplementation(project(":testing-common"))
  10. testImplementation("org.springframework.boot:spring-boot-starter-web:$springBootVersion")
  11. testImplementation("org.springframework.boot:spring-boot-starter-test:$springBootVersion") {
  12. exclude("org.junit.vintage", "junit-vintage-engine")
  13. }
  14. }
  15. configurations.testRuntimeClasspath {
  16. resolutionStrategy {
  17. // requires old logback (and therefore also old slf4j)
  18. force("ch.qos.logback:logback-classic:1.2.11")
  19. force("org.slf4j:slf4j-api:1.7.36")
  20. }
  21. }