Subject: add jaxb-api jar for openjdk 11
Description: xml.bind has been removed from openjdk 11,
 add jaxb-api jar file to compilation and classpath
Author: Olivier Sallou <osallou@debian.org>
Last-Updated: 2018-11-12
Forwarded: no
--- a/build.gradle
+++ b/build.gradle
@@ -22,6 +22,7 @@ dependencies {
     compile "org.apache.commons:commons-compress:1.4.1"
     compile "org.tukaani:xz:1.5"
     compile "gov.nih.nlm.ncbi:ngs-java:2.9.0"
+    compile "javax.xml.bind:jaxb-api:debian"
 
     testCompile "org.scala-lang:scala-library:2.12.x"
     //testCompile "org.scalatest:scalatest_2.12:3.0.5"
@@ -29,6 +30,7 @@ dependencies {
     testCompile "org.testng:testng:debian"
     testCompile "com.google.jimfs:jimfs:debian"
     testCompile "com.google.guava:guava:debian"
+    testCompile "com.sun.xml.bind:jaxb-impl:debian"
  }
 
 sourceCompatibility = 1.8
@@ -94,7 +96,6 @@ test {
     if (System.env.CI == "true") {
         jvmArgs += '-Dsamjdk.sra_libraries_download=true'
     }
-    jvmArgs += ["--add-modules", "java.xml.bind"]
 
     exclude 'htsjdk/samtools/sra/**'
     exclude 'htsjdk/samtools/BAMFileIndexTest.java'
@@ -121,7 +122,6 @@ wrapper {
 if (JavaVersion.current().isJava8Compatible()) {
     tasks.withType(Javadoc) {
         options.addStringOption('Xdoclint:none', '-quiet')
-        options.addStringOption('-add-modules', 'java.xml.bind')
     }
 }
 
