From 941657887bc5541ef3805ddc6849cca728e6a550 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 a1525d37..0e6f1028 100644 --- a/build.gradle +++ b/build.gradle @@ -103,13 +103,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