build.gradle.kts 667 B

12345678910111213141516171819202122232425262728293031
  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. tasks {
  11. val testStableSemconv by registering(Test::class) {
  12. jvmArgs("-Dotel.semconv-stability.opt-in=http")
  13. }
  14. check {
  15. dependsOn(testStableSemconv)
  16. }
  17. }
  18. val latestDepTest = findProperty("testLatestDeps") as Boolean
  19. // spring 6 requires java 17
  20. if (latestDepTest) {
  21. otelJava {
  22. minJavaVersionSupported.set(JavaVersion.VERSION_17)
  23. }
  24. }