Third-party plugins cannot be applied by ID from external build scripts

I’m not sure if this is a known problem, but I wasn’t able to find it. Anyway, the problem is that when you ‘include’ (apply) a script which uses an external plugin, then you can’t refer to it by its name.

An example can be seen at http://code.google.com/p/rivoli/source/browse/gradle/sub/coverage.gradle - in line 29, we’d like to refer to the Clover plugin by its ID instead of by its class name.

Confirmed. I’ve created GRADLE-2136 for this.

Thanks, Peter.

I’ve seen this not work: # build.gradle has “apply from: file(‘license.gradle’)” # license.gradle has "apply plugin: ‘license’

But this does work: # build.gradle has “apply from: file(‘license.gradle’)” # license.gradle has "apply plugin: nl.javadude.gradle.plugins.license.LicensePlugin