This bug affects both the Grails user guide project build and the new Grails HOWTOs one. Basically, I have a task that uses a version of the Radeox DocEngine to produce HTML. With Gradle 1.0 M4, this worked fine if that task ran multiple times (once for each supported language). However, starting at least with 1.0 M6 the second execution of the task threw a NullPointerException.
Interestingly, this NPE appears to come from Groovy's findAll() and each() methods, which are supposed to be null-safe (they're implemented via a category after all).
I've attached a sample project that reproduces the problem. Simply run ./gradlew clean docs. I can fix my build by editing HowToDocEngine.groovy and using the null-safe operator on the engineProperties property.
|