Error while importing the EmbeddedKafkaBroker class in the unit tests

So as per your suggestion, I changed the dep scope for spring-kafka-test from testImplementantion to implementation in build.gradle of both the main and test directory.

And then it was able to pull the dependency.

1 Like