Skip to content

[Bug]: testcontainers-kafka 2.x still has split package issue #11716

@big-andy-coates

Description

@big-andy-coates

Module

Kafka

Testcontainers version

2.0.4

Using the latest Testcontainers version?

Yes

Host OS

MacOS

Host Arch

ARM

Docker version

Not related to Docker

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions