Description: omitting the build of classes that use deprecated
 com.sun.javadoc package, which disappears in OpenJDK 17.
Author: Pierre Gruet <pgt@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1011468
Forwarded: https://github.com/broadinstitute/barclay/issues/185
Last-Update: 2022-05-26

--- a/build.gradle
+++ b/build.gradle
@@ -35,6 +35,37 @@
     mavenLocal()
 }
 
+sourceSets {
+  main {
+    java {
+      exclude "**/BarclayDocletOption.java"
+      exclude "**/BashTabCompletionDoclet.java"
+      exclude "**/BashTabCompletionDocWorkUnitHandler.java"
+      exclude "**/DefaultDocWorkUnitHandler.java"
+      exclude "**/DocletUtils.java"
+      exclude "**/DocumentedFeatureScanner.java"
+      exclude "**/DocWorkUnit.java"
+      exclude "**/DocWorkUnitHandler.java"
+      exclude "**/GSONWorkUnit.java"
+      exclude "**/HelpDoclet.java"
+      exclude "**/JavaLanguageModelScanners.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']
 }
