darkmoon_uk
03/11/2022, 6:57 AMplugin
declaration in the toml
file
• Need to put the plugin on the class-path because it's not found with ID alone (e.g:`"com.android.application"`)
• Gradle refuses version specification when plugin is already on the classpath
Catch 22!? Is anyone declaring the com.android.application / library
plugin with Version Catalogs successfully?Zac Sweers
03/11/2022, 7:57 AMhfhbd
03/11/2022, 8:37 AMplugins {
id("com.android.application") version "7.0.4"
kotlin("android") version "1.6.10"
}
repositories {
mavenCentral()
google()
}
And you should use Gradle 7.4, which allows you to apply a plugin in a subproject with the same version defined in the root project, which is done by the version catalog feature under the hood: https://docs.gradle.org/current/release-notes.htmlVampire
03/11/2022, 9:05 AMbuildscript
block but can simply do the id=>dependency mapping in the settings script.