I keep getting could not resolve the artifact. I have gone through all the confluent documentation and checked a lot of answers on stack overflow and none of the approaches suggested was able to help me with this issue.
I mentioned the confluent repository in my build.gradle file
maven {
url '/'
}
This is the dependency I am mentioning in build.gradle
:
implementation 'io.confluent:kafka-avro-serializer:7.0.1'
I don't know what else I need to do to implement the package. This is the error I keep getting whenever I try the build:
Could not resolve io.confluent:kafka-avro-serializer:7.0.1 for :worker:test
I keep getting could not resolve the artifact. I have gone through all the confluent documentation and checked a lot of answers on stack overflow and none of the approaches suggested was able to help me with this issue.
I mentioned the confluent repository in my build.gradle file
maven {
url 'https://packages.confluent.io/maven/'
}
This is the dependency I am mentioning in build.gradle
:
implementation 'io.confluent:kafka-avro-serializer:7.0.1'
I don't know what else I need to do to implement the package. This is the error I keep getting whenever I try the build:
Could not resolve io.confluent:kafka-avro-serializer:7.0.1 for :worker:test
1 Answer
Reset to default 0You have to do more than just 'mention' it :-)
You have to put it in a 'repositories' block:
repositories {
mavenCentral()
maven {
url = 'https://packages.confluent.io/maven/'
}
}
See https://docs.gradle./current/userguide/declaring_repositories_basics.html