From 52f325db82c0551ff662d4c6e1c18615b9cde0f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Thu, 9 Jan 2025 17:24:21 +0100 Subject: [PATCH] Fix javadoc Gradle task This commit refines the javadoc options and removes aspectj broken link. See gh-34220 --- build.gradle | 1 - gradle/spring-module.gradle | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 2172bb65833..fe16e16ad29 100644 --- a/build.gradle +++ b/build.gradle @@ -86,7 +86,6 @@ configure([rootProject] + javaProjects) { project -> "https://docs.oracle.com/en/java/javase/17/docs/api/", "https://jakarta.ee/specifications/platform/11/apidocs/", "https://docs.jboss.org/hibernate/orm/5.6/javadocs/", - "https://eclipse.dev/aspectj/doc/released/aspectj5rt-api", "https://www.quartz-scheduler.org/api/2.3.0/", "https://fasterxml.github.io/jackson-core/javadoc/2.14/", "https://fasterxml.github.io/jackson-databind/javadoc/2.14/", diff --git a/gradle/spring-module.gradle b/gradle/spring-module.gradle index f8d79ef9776..0884c28dbdf 100644 --- a/gradle/spring-module.gradle +++ b/gradle/spring-module.gradle @@ -76,9 +76,9 @@ javadoc { options.header = project.name options.use = true options.links(project.ext.javadocLinks) - // Check for syntax during linting. 'none' doesn't seem to work in suppressing - // all linting warnings all the time (see/link references most notably). - options.addStringOption("Xdoclint:syntax", "-quiet") + // Check for syntax during linting. + options.setOutputLevel(JavadocOutputLevel.QUIET) + options.addBooleanOption("Xdoclint:syntax", true) // Suppress warnings due to cross-module @see and @link references. // Note that global 'api' task does display all warnings, and