Slackbot
08/20/2022, 1:05 PMVampire
08/20/2022, 1:24 PMval libs = extensions.getByType<VersionCatalogsExtension>().named("libs")
is the full version catalog. You get both, the libs and the plugins from it, but both only stringy.
Type-safe accessors you only get using a hack I detailed at https://github.com/gradle/gradle/issues/15383Stylianos Gakis
08/20/2022, 1:52 PMalias(libs.plugins.xx)
but this alias
function doesnāt seem to be available in my convention plugin configuration. Is there something I can do there too, like some way to use the libs.plugins
in a apply()
instead?Stylianos Gakis
08/20/2022, 2:00 PMapply(libs.plugins.xx.get().pluginId)
but then rely on the version of it being applied on the root build.gradle with apply = false
but that doesnāt sound that great either š¤Vampire
08/20/2022, 2:16 PMStylianos Gakis
08/20/2022, 2:21 PMStylianos Gakis
08/20/2022, 2:30 PMinline fun <reified T : Any> Project.the(): T
function, I read
/**
* Returns the plugin convention or extension of the specified type.
*
* Note, that the concept of conventions is deprecated and scheduled for
* removal in Gradle 8.
*/
Since this is to be removed, is there something coming in to replace it? Seeing it made me double think if I even want to go that approach if I must revert it in gradle 8 anyway.Vampire
08/20/2022, 2:32 PMStylianos Gakis
08/20/2022, 2:34 PMVampire
08/20/2022, 4:33 PMStylianos Gakis
08/20/2022, 11:01 PM