Commit 66fd737
chore(smoke-tests): extract Spring Boot 2.x app source into standalone Gradle 8 subprojects
The Spring Boot Gradle plugin is incompatible with Gradle 9 for all versions
before 3.5.0 because it calls `Configuration.getUploadTaskName()`, a method
removed in Gradle 9.
Twelve smoke-test modules were direct Gradle subprojects that applied the
Spring Boot plugin to build their bootJar/bootWar artefact. They cannot stay
as subprojects of the Gradle 9 root build.
For each of these modules, the application source is extracted into a new
`application/` subdirectory that is a fully self-contained Gradle project
(settings.gradle + build.gradle + Gradle 8.14.5 wrapper). The outer module
keeps the test source and delegates the application build via an `Exec` task
that invokes `application/gradlew`.
Modules converted (bootJar):
- springboot-thymeleaf (Spring Boot 2.7.15, Java 8)
- springboot-freemarker (Spring Boot 2.7.15 plugin / 1.5.18 starter, Java 8)
- springboot-velocity (Spring Boot 2.7.15 plugin / 1.5.18 starter, Java 8)
- springboot-java-11 (Spring Boot 2.7.15, Java 11; passes iast-util-11 jar)
- springboot-java-17 (Spring Boot 2.7.15, Java 17; passes iast-util-17 jar)
- apm-tracing-disabled (Spring Boot 2.7.15, Java 8; passes dd-trace-api jar)
- kafka-2 (Spring Boot 2.7.15, Java 8; passes iast-util jar)
- openfeature (Spring Boot 2.7.15, Java 11; passes feature-flagging-api jar)
Modules converted (bootWar):
- springboot-jpa (Spring Boot 2.6.0, Java 8; Lombok)
- springboot-tomcat-jsp (Spring Boot 2.7.15, Java 8; JSP webapp)
- springboot-jetty-jsp (Spring Boot 2.7.15, Java 8; JSP webapp)
- springboot-tomcat (Spring Boot 2.5.12, Java 8; Ivy Tomcat download + unzip)
Where an application module depends on a project artifact from the main build
(e.g. iast-util-11, dd-trace-api), the jar path is forwarded as a Gradle
property (`-PfooJar=…`) from the Exec task and consumed via
`if (hasProperty('fooJar')) { implementation files(property('fooJar')) }`.
The spring-kafka-test test dependency in kafka-2 is pinned to 2.8.11 (the
version previously resolved from the Spring Boot BOM) since the test module
no longer has access to that BOM.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>1 parent 115d04d commit 66fd737
131 files changed
Lines changed: 4668 additions & 335 deletions
File tree
- dd-smoke-tests
- apm-tracing-disabled
- application
- gradle/wrapper
- src/main/java/datadog/smoketest/apmtracingdisabled
- kafka-2
- application
- gradle/wrapper
- src/main/java/datadog/smoketest/kafka
- iast
- openfeature
- application
- gradle/wrapper
- src/main/java/datadog/smoketest/springboot
- openfeature
- springboot-freemarker
- application
- gradle/wrapper
- src/main
- java/datadog/smoketest/springboot
- resources/templates
- springboot-java-11
- application
- gradle/wrapper
- src/main/java/datadog/smoketest/springboot
- springboot-java-17
- application
- gradle/wrapper
- src/main/java/datadog/smoketest/springboot
- springboot-jetty-jsp
- application
- gradle/wrapper
- src/main
- java/datadog/smoketest/springboot
- resources
- webapp/WEB-INF/jsp
- springboot-jpa
- application
- gradle/wrapper
- src/main
- java/datadog/smoketest/springboot
- controller
- entity
- filter
- service
- resources
- webapp/WEB-INF/jsp
- springboot-thymeleaf
- application
- gradle/wrapper
- src/main
- java/datadog/smoketest/springboot
- resources/templates
- springboot-tomcat-jsp
- application
- gradle/wrapper
- src/main
- java/datadog/smoketest/springboot
- resources
- webapp/WEB-INF/jsp
- springboot-tomcat
- application
- gradle/wrapper
- src/main
- java/datadog/smoketest/springboot
- controller
- resources
- springboot-velocity
- application
- gradle/wrapper
- src/main
- java/datadog/smoketest/springboot
- resources/templates
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
Binary file not shown.
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 89 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments