import org.springframework.boot.gradle.tasks.bundling.BootJar

plugins {
  id("otel.java-conventions")
  id("org.springframework.boot") version "2.6.15"
}

description = "smoke-tests-otel-starter-spring-smoke-testing"

dependencies {
  // spring dependencies are compile only to enable testing against different versions of spring
  compileOnly(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))
  compileOnly("org.springframework.boot:spring-boot-starter")
  compileOnly("org.springframework.boot:spring-boot-starter-test")
  api(project(":testing-common"))
  api(project(":instrumentation:spring:spring-boot-autoconfigure"))
  api("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi")
}

tasks.withType<BootJar> {
  enabled = false
}
