build.gradle.kts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. plugins {
  2. id("otel.library-instrumentation")
  3. }
  4. dependencies {
  5. compileOnly("com.google.auto.value:auto-value-annotations")
  6. annotationProcessor("com.google.auto.value:auto-value")
  7. library("org.springframework.integration:spring-integration-core:4.1.0.RELEASE")
  8. testImplementation(project(":instrumentation:spring:spring-integration-4.1:testing"))
  9. testLibrary("org.springframework.boot:spring-boot-starter-test:1.5.22.RELEASE")
  10. testLibrary("org.springframework.boot:spring-boot-starter:1.5.22.RELEASE")
  11. testLibrary("org.springframework.cloud:spring-cloud-stream:2.2.1.RELEASE")
  12. testLibrary("org.springframework.cloud:spring-cloud-stream-binder-rabbit:2.2.1.RELEASE")
  13. latestDepTestLibrary("org.springframework.integration:spring-integration-core:5.+")
  14. latestDepTestLibrary("org.springframework.boot:spring-boot-starter-test:2.+")
  15. latestDepTestLibrary("org.springframework.boot:spring-boot-starter:2.+")
  16. latestDepTestLibrary("org.springframework.cloud:spring-cloud-stream:3.+")
  17. latestDepTestLibrary("org.springframework.cloud:spring-cloud-stream-binder-rabbit:3.+")
  18. }
  19. tasks {
  20. withType<Test>().configureEach {
  21. systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
  22. usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
  23. }
  24. }
  25. configurations.testRuntimeClasspath {
  26. resolutionStrategy {
  27. // requires old logback (and therefore also old slf4j)
  28. force("ch.qos.logback:logback-classic:1.2.11")
  29. force("org.slf4j:slf4j-api:1.7.36")
  30. }
  31. }
  32. tasks.withType<Test>().configureEach {
  33. jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
  34. }