This is how I've previously configured subprojects in gradle if a certain plugin was present:
subprojects {
repositories {
jcenter()
google()
}
plugins.withType(com.android.build.gradle.LibraryPlugin) {
android {
compileSdkVersion 29
...
}
}
}
Now I'm not working with groovy anymore. How can I achieve the same thing with gradle kotlin DSL?
Biggest problem here seems to be to find a way to access the android extension, I can't seem to access it using android nor extensions.findByType(com.android.build.gradle.LibraryExtension::class.java).