Open malice00 opened 3 years ago
Gradle is mysterious and many people have issues, yet very few are able to provide good docs or pull requests that fix issues.
As the author of this plugin, I dont know how to fix it. But it sounds like a dependency issue to me. Android has some weird dependency things that override what you think are actual dependencies. We've had a lot of issues with one of the Apache Commons libraries for example with Android providing a really old version.
You could try adding woorstox as a dependency of your project and see if it fixes it.
Is the project you're working on public?
We are trying to generate BOMs for our Android projects and I am having a hell of a time. After finally figuring out all configs that I have to skip (still not sure why though...), the plugin seems to run but dies when trying to write the BOM with no real information:
FAILURE: Build failed with an exception.
Running the task with '--stacktrace' give me a little more information, but I have no clue how to fix this, or if it is even something I can fix on my side (I'm not really familiar with Gradle, more of a Maven-man myself, but am tasked with generating the BOMs):
----- snipped a large part of the stacktrace -----
Caused by: org.cyclonedx.exception.GeneratorException: com.fasterxml.jackson.core.JsonGenerationException: Underlying Stax XMLStreamWriter (of type shadow.nexus.shadow.com.ctc.wstx.sw.RepairingNsStreamWriter) does not implement Stax2 API natively and is missing method 'writeRaw': this breaks functionality such as indentation that relies on it. You need to upgrade to using compliant Stax implementation like Woodstox or Aalto
Can I fix this myself, or is this something in the plugin (dependency?) or can I somehow configure this in eg my build.gradle?