Publish docs to distinct directories
Seems that the GhPages plugin overwrites existing content instead of adding to it. The Javadocs are empty so there's no point in publishing them. Used a more descriptive directory name for the API docs.
@@ -31,16 +31,11 @@ gitPublish {
branch = 'gh-pages'
contents {
- from(javadoc.outputs.files) {
- into 'docs/javadoc'
- }
from(groovydoc.outputs.files) {
- into 'docs/groovydoc'
- }
- from("$asciidoctor.outputDir/html5") {
- into 'docs/userguide'
+ into 'api'
}
+ from "$asciidoctor.outputDir/html5"
}
}
-gitPublishPush.dependsOn javadoc, groovydoc, asciidoctor
+gitPublishPush.dependsOn groovydoc, asciidoctor
