I am able to trigger a NullPointerException
in gradle when a project tries to extend the configuration of another subproject.
The following minimal build.gradle
file triggers it:
project(':A') {
configurations { aConfig }
dependencies { aConfig fileTree('lib') }
}
project(':B') {
configurations {
bConfig.extendsFrom(project(':A').configurations.aConfig)
}
task crash { doLast { configurations.bConfig.each{} } }
}
I crashes due to a NullPointerException
in AbstractModuleDescriptorBackedMetaData.java
.
Validated on gradle 2.4 nightly, 2.3 and 2.2.1.