build.gradle.kts 1.1 KB

1234567891011121314151617181920212223242526272829
  1. import org.springframework.boot.gradle.tasks.bundling.BootJar
  2. plugins {
  3. id("otel.java-conventions")
  4. id("org.springframework.boot") version "2.7.18"
  5. }
  6. description = "smoke-tests-otel-starter-spring-boot-common"
  7. dependencies {
  8. // spring dependencies are compile only to enable testing against different versions of spring
  9. compileOnly(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES))
  10. compileOnly("org.springframework.boot:spring-boot-starter-web")
  11. compileOnly("org.springframework.boot:spring-boot-starter-test")
  12. compileOnly("org.springframework.boot:spring-boot-starter-data-jdbc")
  13. compileOnly("org.apache.commons:commons-dbcp2")
  14. compileOnly("org.springframework.kafka:spring-kafka")
  15. compileOnly("org.testcontainers:junit-jupiter")
  16. compileOnly("org.testcontainers:kafka")
  17. api(project(":smoke-tests-otel-starter:spring-smoke-testing"))
  18. implementation("io.opentelemetry:opentelemetry-extension-trace-propagators")
  19. implementation(project(":instrumentation:spring:starters:spring-boot-starter"))
  20. }
  21. tasks.withType<BootJar> {
  22. enabled = false
  23. }