Slackbot
01/17/2023, 10:43 AMMartin
01/17/2023, 2:49 PMMartin
01/17/2023, 2:49 PMMartin
01/17/2023, 2:50 PM1.0.0 or x.y.z and it'll be in the classpath no matter whatMartin
01/17/2023, 2:56 PMJavi
01/17/2023, 3:42 PMJavi
01/17/2023, 3:42 PMMartin
01/17/2023, 3:44 PMbuild-logic/build.gradle.kts (gradlePlugins {} block)
• yourmodule/build.gradle.kts or libs.versions.tomlMartin
01/17/2023, 3:44 PMMartin
01/17/2023, 3:47 PMplugins {
// Can build-logic contribute anything here?
`my-plugin`
}Martin
01/17/2023, 3:47 PMkotlin-dsl and others but maybe it's only available to a few select pluginsMartin
01/17/2023, 3:48 PMkotlin("jvm") so you might be able to do something ?Martin
01/17/2023, 3:48 PMfun PluginDependenciesSpec.`my-module`(): PluginDependencySpec =
id("com.example.mymodule")Martin
01/17/2023, 3:49 PMbuild-logic maybe?Javi
01/17/2023, 3:50 PMget().pluginId, both are annoying, first because I always forget it, second because I have to sync two times as I can't write it without autocomplete, and I will forget it too without autocomplete 🙃
And I can't create manually the accessors if I am not using buildSrc, they fail for me, and even if that work, it lacks consistence too
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.my.convention)
id(libs.plugins.my.convention.get().pluginId)
id("my-convention")
`my-convention` // this is crashing using an extension property over the plugin spec class
)Javi
01/17/2023, 3:52 PMid + version or just id based on what is defined in the alias + the catalogMartin
01/17/2023, 3:52 PMMartin
01/17/2023, 3:53 PMMartin
01/17/2023, 3:53 PMMartin
01/17/2023, 3:53 PMMartin
01/17/2023, 3:53 PMJavi
01/17/2023, 3:55 PMJavi
01/17/2023, 3:56 PMJavi
01/17/2023, 3:56 PMJavi
01/17/2023, 3:57 PM• or use the settings DSL to declare the plugin without version
Javi
01/18/2023, 2:24 PM