Not able to utilise the plugin #56
-
Hello @ImFlog @bspeakmon @akhil-karanth @codyoss ,
When I do
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @DiljeetKaur-ELS, plugins {
id("java")
id("org.springframework.boot") version "2.4.4"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
id("com.github.imflog.kafka-schema-registry-gradle-plugin") version "1.2.0"
id("com.github.davidmc24.gradle.plugin.avro") version "1.0.0"
}
// The buildscript block was the missing part.
buildscript {
repositories {
gradlePluginPortal()
maven {
name = "confluent"
url = uri("https://packages.confluent.io/maven/")
}
maven {
url = uri("https://jitpack.io")
}
}
}
repositories {
mavenCentral()
jcenter()
// Add the repository according to the libraries you want to use in your code.
} Hope it helps. |
Beta Was this translation helpful? Give feedback.
Hello @DiljeetKaur-ELS,
Thank you for the interest on the plugin.
The reason it is not working is because you are defining repositories for your build and not repositories for the plugins.
As stated in the readme you need to add the repository in a
buildscript {}
block. I tried on my computer and here is what your build.gradle.kts should look like: