build.gradle.kts 498 B

123456789101112131415161718192021
  1. plugins {
  2. id("otel.library-instrumentation")
  3. }
  4. dependencies {
  5. compileOnly("org.springframework:spring-web:3.1.0.RELEASE")
  6. testLibrary("org.springframework:spring-web:3.1.0.RELEASE")
  7. testImplementation(project(":testing-common"))
  8. testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
  9. }
  10. val latestDepTest = findProperty("testLatestDeps") as Boolean
  11. // spring 6 requires java 17
  12. if (latestDepTest) {
  13. otelJava {
  14. minJavaVersionSupported.set(JavaVersion.VERSION_17)
  15. }
  16. }