I was originally using Gradle 1.5 to test my Groovy scripts but also tried this with Gradle 1.9 and experienced the same problem. The groovyDoc task in build.gradle is set up like:
groovydoc {
docTitle = "Name"
windowTitle = "Name"
destinationDir = file('file://path')
}
The error I’m getting when running this task is:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':groovydoc'.
> java.lang.NoClassDefFoundError: org/fusesource/jansi/AnsiRenderWriter
This only started happening after I made a minor code change (adding a single If statement) to one of my classes. I reverted to the previous commit and it does not have this problem. I tried deleting my change in the class and recommitting the same file but it is still failing.
You can see the full stacktrace here: http://pastebin.com/1infzqtY