As a follow-up, one plugin we use is checking if a...
# gradle
f
As a follow-up, one plugin we use is checking if android plugin is on classpath and with what version. It uses something like
Copy code
rootProject.buildscript.configurations.getByName("classpath").resolvedConfiguration.resolvedArtifacts.forEach {
    if (it.moduleVersion.id.group == "com.android.tools.build" && it.moduleVersion.id.name == "gradle") {
        return it.moduleVersion.id.version
    }
}
But that does not work, if the plugin is defined as a dependency inside
buildSrc
. Is there a way achieve something similar?