This may cause dependency conflicts as different versions may be added by integration tests and base deps.
For our use-case (ConnectRunner based integration tests), dependencies should not be inherited to only load Connector main dependencies via plugin directory.
Integration tests start a Connect worker using plugin directory from the distribution:
To then use distribution: https://github.com/aiven/gcs-connector-for-apache-kafka/blob/ff9d1a11f1feb99acb302334cc6fc98032c0f023/src/integration-test/java/io/aiven/kafka/connect/gcs/AbstractIntegrationTest.java#L154
At the same time, integration tests inherit dependencies from tests (and therefore also base):
This may cause dependency conflicts as different versions may be added by integration tests and base deps.
For our use-case (ConnectRunner based integration tests), dependencies should not be inherited to only load Connector main dependencies via plugin directory.