Gradle Does Not Include Optional Dependency
问题 I have a project which has the apache-compress library as a compile time dependency. This library appears to use Maven and has a POM file with a dependency set up as "optional". Here is the relevant section of the POM file: <dependency> <groupId>org.tukaani</groupId> <artifactId>xz</artifactId> <version>1.5</version> <optional>true</optional> </dependency> Gradle does not seem to include this library in to my project, I'm guessing it is because of the "optional" attribute. Is there some way