Search code examples
gradleapache-kafkakafka-producer-api

Not able to download Jars from Confluent repository in a gradle project


I have added confluent repo to the build.gradle file

 repositories {
        gradlePluginPortal()
        mavenCentral()
        maven {
            url "https://packages.confluent.io/maven/"
        }
    }

But I am not able to download the dependency

compile("io.confluent:kafka-avro-serializer:3.2.1")

Solution

  • i wanted it in subprojects so in the parent build.gradle i had to add as follows and this worked fine for me.

    subprojects {
    repositories {
      maven {
                url "https://packages.confluent.io/maven/"
            }
        }
    }