build.gradle.kts 1.2 KB

12345678910111213141516171819202122232425262728293031
  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.springframework.boot:spring-boot-starter-data-mongodb")
  16. compileOnly("org.testcontainers:junit-jupiter")
  17. compileOnly("org.testcontainers:kafka")
  18. compileOnly("org.testcontainers:mongodb")
  19. api(project(":smoke-tests-otel-starter:spring-smoke-testing"))
  20. implementation("io.opentelemetry:opentelemetry-extension-trace-propagators")
  21. implementation(project(":instrumentation:spring:starters:spring-boot-starter"))
  22. }
  23. tasks.withType<BootJar> {
  24. enabled = false
  25. }