admin管理员组

文章数量:1304247

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

Share Improve this question edited Feb 5 at 15:17 Samu Németh 5701 gold badge5 silver badges20 bronze badges asked Feb 4 at 7:50 Aashish BalivadaAashish Balivada 1
Add a comment  | 

1 Answer 1

Reset to default 0

You 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

本文标签: javaHow to fix could not resolve ioconfluentkafkaavroserializer780Stack Overflow