Module
Kafka
Testcontainers version
2.0.4
Using the latest Testcontainers version?
Yes
Host OS
MacOS
Host Arch
ARM
Docker version
What happened?
Release of version 2.x saw each module's types move into a module specific package. This was to avoid split-package issues when working with Java modules.
However, testcontainers-kafka still suffers from split-package issues due to the deprecated org.testcontainers.containers.KafkaContainer class. This is in the org.testcontainers.containers package: a package which is also exported from the main testcontainers jar.
Relevant log output
error: module foo reads package org.testcontainers.containers from both testcontainers and testcontainers.kafka
Additional Information
The deprecated org.testcontainers.containers.KafkaContainer could have been dropped when moving to version 2.x. It should likely still be dropped now, as it will be causing people using modules pain.
It may also be worth considering adding a test to check from split packages across all modules in the repo. Otherwise, it's possible people will inadvertently reintroduce split package issues without realising.
Module
Kafka
Testcontainers version
2.0.4
Using the latest Testcontainers version?
Yes
Host OS
MacOS
Host Arch
ARM
Docker version
What happened?
Release of version 2.x saw each module's types move into a module specific package. This was to avoid split-package issues when working with Java modules.
However, testcontainers-kafka still suffers from split-package issues due to the deprecated
org.testcontainers.containers.KafkaContainerclass. This is in theorg.testcontainers.containerspackage: a package which is also exported from the maintestcontainersjar.Relevant log output
Additional Information
The deprecated
org.testcontainers.containers.KafkaContainercould have been dropped when moving to version 2.x. It should likely still be dropped now, as it will be causing people using modules pain.It may also be worth considering adding a test to check from split packages across all modules in the repo. Otherwise, it's possible people will inadvertently reintroduce split package issues without realising.