Skip to content

build(deps): align testcontainers on the 2.0.5 bom - #159

Open
kcrmin wants to merge 2 commits into
developfrom
build/testcontainers-2-alignment
Open

kcrmin wants to merge 2 commits into
developfrom
build/testcontainers-2-alignment

Conversation

@kcrmin

@kcrmin kcrmin commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

What and why

  • trading-persistence, trading-worker, market-gateway and market-data-adapter imported testcontainers-bom:1.21.4 with the 1.x artifact names (junit-jupiter, postgresql), while the Spring Boot BOM already resolved testcontainers core to 2.0.5. The test classpath mixed 1.21.4 modules with a 2.0.5 core.
  • All four modules now use testcontainers-bom:2.0.5 with testcontainers-junit-jupiter and testcontainers-postgresql, the same as the backend.
  • The tests now use org.testcontainers.postgresql.PostgreSQLContainer. The old org.testcontainers.containers.PostgreSQLContainer is deprecated in 2.x.
  • Build plugin and Spring Boot versions are unchanged. The Spring Boot bump is in a separate PR.

Verified

  • ./gradlew :<module>:dependencies --configuration testRuntimeClasspath for the four modules: every org.testcontainers artifact resolves to 2.0.5, and no 1.21.4 artifact is left.
  • ./gradlew check --no-daemon --no-build-cache with Docker (colima): BUILD SUCCESSFUL. The JUnit XML shows 745 tests, 0 skipped, 0 failures and 0 errors, on each commit.
  • pwsh ./scripts/test-github-action-pins.ps1: passed.

Checklist

  • Only test dependencies and test sources changed
  • Container tests ran against real PostgreSQL and Redis, with none skipped
  • The test compile no longer reports a deprecated API
  • Build plugin versions are untouched

Related: #163 (Spring Boot 4.1.2 bump).

Four modules imported the 1.21.4 BOM and 1.x artifact names while
Spring Boot already resolved testcontainers core 2.0.5.
org.testcontainers.containers.PostgreSQLContainer is deprecated in 2.x;
the backend already uses org.testcontainers.postgresql.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant