How do I configure a plugin extension in a buildSr...
# gradle
f
How do I configure a plugin extension in a buildSrc kt file?
o
project.configure<PluginExtensionClass> { ... }
f
in the build.gradle.kts I can fin the JibExtension
But I can't do that in a file
o
it's probably not on your buildSrc classpath then
f
How do I put it?
o
same way you add a normal dependency to other projects,
build.gradle.kts
in the
buildSrc
folder
f
I put a plugin
it's not as a plugin, because you want to depend upon that plugin, you need it as a dependency
f
I can't find the dependencyNotation of it
"com.google.cloud.tools.jib"
it's the plugin
o
https://plugins.gradle.org/plugin/com.google.cloud.tools.jib -> "Using legacy plugin application:" -> "gradle.plugin.com.google.cloud.toolsjib gradle plugin1.7.0"
f
Oh
like this?
dependencies { implementation("gradle.plugin.com.google.cloud.toolsjib gradle plugin1.7.0")
o
yes
f
I still cant find
the JibExtension
o
not sure then, that's how I do it on every project
f
no problem thanks