Update dependency org.testcontainers:testcontainers-bom to v2 - #523
Update dependency org.testcontainers:testcontainers-bom to v2#523renovate[bot] wants to merge 1 commit into
Conversation
Up to standards ✅🟢 Issues
|
499965d to
6cb85a9
Compare
6cb85a9 to
1052065
Compare
There was a problem hiding this comment.
Pull Request Overview
The upgrade of org.testcontainers:testcontainers-bom to version 2.0.5 introduces significant breaking changes that have not been fully addressed in this PR.
Key issues found:
- Artifact Renaming: Testcontainers 2.x requires all module artifact IDs to be prefixed with
testcontainers-(e.g.,mysqlbecomestestcontainers-mysql). - Package Relocations: Classes have been moved, which will cause compilation failures in existing code.
- JUnit 4 Support: Support for JUnit 4 has been removed. If the project uses Testcontainers' JUnit 4 rules, those tests will fail.
While the version update itself is correct according to the requirement, the lack of corresponding configuration and code changes makes this PR unsafe to merge in its current state.
About this PR
- Testcontainers v2.0 introduces a mandatory 'testcontainers-' prefix for all module artifacts. The project's library definitions must be updated to match these new identifiers to avoid resolution failures.
- JUnit 4 support is removed in Testcontainers v2. Verify if the project relies on Testcontainers JUnit 4 rules and migrate them to JUnit 5 or use the provided migration path if available.
Test suggestions
- Verify that the build successfully resolves dependencies with the new major version
- Verify that existing container-based tests still pass despite the breaking changes (package relocation and JUnit 4 removal) in Testcontainers v2
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify that the build successfully resolves dependencies with the new major version
2. Verify that existing container-based tests still pass despite the breaking changes (package relocation and JUnit 4 removal) in Testcontainers v2
TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback
| embedded_postgres = "2.2.2" | ||
| embedded_postgres_binaries = "18.4.0" | ||
| testcontainers = "1.21.4" | ||
| testcontainers = "2.0.5" |
There was a problem hiding this comment.
🔴 HIGH RISK
Updating to v2 requires artifact ID changes and package relocation. Ensure that the 'libraries' section of this catalog and project imports are updated to match Testcontainers 2.0 specifications.
This PR contains the following updates:
1.21.4→2.0.5Release Notes
testcontainers/testcontainers-java (org.testcontainers:testcontainers-bom)
v2.0.5Compare Source
What's Changed
🚀 Features & Enhancements
apache/artemisin ArtemisContainer (#11590) @eddumelendez🐛 Bug Fixes
📖 Documentation
🧹 Housekeeping
📦 Dependency updates
16 changes
v2.0.4Compare Source
What's Changed
📖 Documentation
📦 Dependency updates
v2.0.3Compare Source
What's Changed
🐛 Bug Fixes
📖 Documentation
📦 Dependency updates
7 changes
v2.0.2Compare Source
What's Changed
🐛 Bug Fixes
📖 Documentation
🧹 Housekeeping
📦 Dependency updates
v2.0.1Compare Source
What's Changed
🐛 Bug Fixes
📖 Documentation
🧹 Housekeeping
v2.0.0Compare Source
Testcontainers 2.0.0
Main changes
testcontainers-. For example,org.testcontainers:mysqlis noworg.testcontainers:testcontainers-mysqlorg.testcontainers.<module-name>package. For example, newMySQLContainerclass is underorg.testcontainers.mysqlWhat's Changed
🚀 Features & Enhancements
🐛 Bug Fixes
📖 Documentation
🧹 Housekeeping
AutoCloseableforTestcontainersExtension$StoreAdapter(#10529) @linghengqian📦 Dependency updates
46 changes
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.