Bernhard Posselt
07/08/2026, 9:38 AMid("build-logic.my-conventions")
throws * Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'build-logic.my-conventions'] was not found in any of the following sources:Vampire
07/08/2026, 9:39 AMmy-conventions.
Which actually is bad practice, as ones without namespace (dot in name) should stay reserved for built-in plugins.Vampire
07/08/2026, 9:40 AMpackage statement in the script or rename the file accordinglyBernhard Posselt
07/08/2026, 9:42 AMBernhard Posselt
07/08/2026, 9:47 AMalias(libs.plugins.versions)
but not in the convention plugin in build-logic/src/main/kotlin/my-conventions.ktsBernhard Posselt
07/08/2026, 9:47 AMVampire
07/08/2026, 9:48 AMbuild-logic and in the convention plugin just apply using the plain IDBernhard Posselt
07/08/2026, 9:50 AMBernhard Posselt
07/08/2026, 9:52 AMBernhard Posselt
07/08/2026, 9:54 AMdependencies {
implementation(libs.plugins.versions)
}Vampire
07/08/2026, 9:55 AMprivate fun plugin(plugin: Provider<PluginDependency>) = plugin.map {
"${it.pluginId}:${it.pluginId}.gradle.plugin:${it.version.requiredVersion}"
}Bernhard Posselt
07/08/2026, 9:55 AM