ursus
06/03/2021, 2:13 AMplugins {
id 'com.squareup.anvil' version "${latest_version}"
}
to something like
plugins {
ext.plugins.anvil
}
Vampire
06/03/2021, 11:26 AMext
for anything, it is almost just a crutch with better alternatives.
If I understood correctly what you want is to define the version in one place and then use the plugin in multiple build scripts without specifying the version, right?Vampire
06/03/2021, 11:26 AMpluginManagement { plugin { ... } }
in the settings script to declare the default version to use for the plugin and then in the build scripts just use the plugin without version.Vampire
06/03/2021, 11:28 AMbuildSrc
or an included build and there apply the plugin, then in your build script you simply apply your convention plugin which can also do more things like common configuration.ursus
06/03/2021, 5:07 PM