SGF-406 - Fixed configuration of JavaDoc task.

We now depend on the task that extracts shared resources and use the CSS provided with that.
This commit is contained in:
Oliver Gierke
2015-06-02 16:16:35 +02:00
parent ccc4343c4b
commit 4c1f368198

View File

@@ -108,13 +108,23 @@ dependencies {
sourceCompatibility = 1.6
targetCompatibility = 1.6
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
javadoc {
dependsOn = [ 'extractSharedResources' ]
ext.srcDir = file("${projectDir}/docs/src/api")
destinationDir = file("${buildDir}/api")
ext.tmpDir = file("${buildDir}/api-work")
configure(options) {
stylesheetFile = file("${srcDir}/spring-javadoc.css")
stylesheetFile = file("$buildDir/shared-resources/javadoc/spring-javadoc.css")
overview = "${srcDir}/overview.html"
docFilesSubDirs = true
outputLevel = org.gradle.external.javadoc.JavadocOutputLevel.QUIET