build.gradle.kts 673 B

12345678910111213141516171819
  1. plugins {
  2. id("otel.java-conventions")
  3. }
  4. otelJava {
  5. minJavaVersionSupported.set(JavaVersion.VERSION_17)
  6. }
  7. val versions: Map<String, String> by project
  8. val springBootVersion = versions["org.springframework.boot"]
  9. dependencies {
  10. // spring depdenencies are compile only to enable testing against different versions of spring
  11. compileOnly("org.springframework.boot:spring-boot-starter:$springBootVersion")
  12. compileOnly("org.springframework.boot:spring-boot-starter-test:$springBootVersion")
  13. api(project(":testing-common"))
  14. api(project(":instrumentation:spring:spring-boot-autoconfigure"))
  15. api("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi")
  16. }