From 4c1f368198fb3d052211675defd70fee96c8515d Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Tue, 2 Jun 2015 16:16:35 +0200 Subject: [PATCH] SGF-406 - Fixed configuration of JavaDoc task. We now depend on the task that extracts shared resources and use the CSS provided with that. --- build.gradle | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 7af9f51c..1761b02e 100644 --- a/build.gradle +++ b/build.gradle @@ -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