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.
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.