Slackbot
07/19/2023, 8:55 AMTom Koptel
07/19/2023, 9:09 AM$root/build.gradle
file you have
plugins {
alias(libs.plugins.jetbrains.kotlin.serialization) apply false
alias(libs.plugins.jetbrains.kotlin.serialization.new) apply false // some alias
}
If you want then use specific plugin over another let say in app
module you can define it as follow in app/build.gradle
plugins {
alias(libs.plugins.jetbrains.kotlin.serialization.new)
}
Eug
07/19/2023, 9:10 AMEug
07/19/2023, 9:10 AMTom Koptel
07/19/2023, 9:10 AMid 'whatever'
syntaxEug
07/19/2023, 9:10 AMEug
07/19/2023, 9:11 AMEug
07/19/2023, 9:11 AMEug
07/19/2023, 9:11 AMThomas Broyer
07/19/2023, 10:22 AMapply false
? What are you trying to solve by doing this?
Most of the time, this was used to manage versions in a central place (the root script), but then pluginManagement { plugins }
was added to the settings, and then version catalogs (that you're using here).
There are probably a few cases where you'd need to "hoist" plugins to that root project's classloader but they should be very rare.
TL;DR: with pluginManagement { plugins }
or version catalogs, you shouldn't need apply false
any longer anyway, so just declare plugins in the modules where you need them.Eug
07/19/2023, 10:40 AM