Hello,
I would like to generate the Groovy Documentation, if I use straight the predefined task “groovydoc”, I have the following issue :
>gradle groovydoc
…
:compileJava UP-TO-DATE
:compileGroovy UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:groovydoc FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:groovydoc’.
org/codehaus/groovy/tools/groovydoc/ResourceManager
If I defined a custom task in my build.gradle, such as:
//myGroovydocsSrc
task myGroovydocsSrc(type: Groovydoc) {
source sourceSets.main.allGroovy
destinationDir = new File(genLocalDirGroovySrc)
println "classpath= " + sourceSets.test.output.toString() + " " + sourceSets.test.compileClasspath.toString()
classpath = sourceSets.main.output + sourceSets.main.compileClasspath
println ("Creation of Groovy doc src in: " + genLocalDirGroovySrc)
doLast {
tasks.getVersion.execute()
}
}
I have the same error.
I am using gradle 2.4.
Does someone have any clue ?
Plus, I would like to generate the Groovydoc for the “tests” also.
Such as:
//myGroovydocsTest
task myGroovydocsTest(type: Groovydoc) {
source sourceSets.test.allGroovy
destinationDir = new File(genLocalDirGroovyTest)
classpath = sourceSets.test.output + sourceSets.test.compileClasspath
println ("Creation of Groovy doc Test in: " + genLocalDirGroovyTest)
doLast {
tasks.getVersion.execute()
}
}
thanks !
P.