Description: omitting the build of classes that use deprecated com.sun.javadoc package, which disappears in OpenJDK 17. Author: Pierre Gruet Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1011468 Forwarded: no Last-Update: 2022-05-26 --- a/build.gradle +++ b/build.gradle @@ -48,6 +48,33 @@ } */ +sourceSets { + main { + java { + exclude "**/BashTabCompletionDoclet.java" + exclude "**/BashTabCompletionDocWorkUnitHandler.java" + exclude "**/DefaultDocWorkUnitHandler.java" + exclude "**/DocletUtils.java" + exclude "**/DocWorkUnit.java" + exclude "**/DocWorkUnitHandler.java" + exclude "**/HelpDoclet.java" + exclude "**/WDLDoclet.java" + exclude "**/WDLWorkUnitHandler.java" + } + } + + test { + java { + exclude "**/DefaultDocWorkUnitHandlerUnitTest.java" + exclude "**/DocumentationGenerationIntegrationTest.java" + exclude "**/DocGenMocks.java" + exclude "**/DocWorkUnitTest.java" + exclude "**/TestDoclet.java" + exclude "**/TestDocWorkUnitHandler.java" + } + } +} + compileJava { options.compilerArgs = ['-proc:none', '-Xlint:all','-Xdiags:verbose'] }