When using a dependency with an Apache license but has sub-dependencies under GPL, do I need to open source my own code?
Based on my own research, it appears I would have to abide by the full line of license terms but I don't totally understand how things like Hadoop could release under Apache 2.0 if they are dependent on "more restrictive" licenses.
Example - Hadoop (https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common) has dependencies on a variety of Jersey projects which is licensed under CDDL and GPL (https://mvnrepository.com/artifact/com.sun.jersey/jersey-core) and stax.api (https://mvnrepository.com/artifact/javax.xml.stream/stax-api/1.0-2).
Another example - Selenium components (like https://mvnrepository.com/artifact/org.seleniumhq.selenium/htmlunit-driver/2.44.0) has dependencies on a variety of Jetty projects under Apache 2.0 and EPL(https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-http/9.4.20.v20190813).