cdxgen
cdxgen copied to clipboard
[Gradle] SBOM generation didn't work on Windows
cdxgen didn't generate SBOM for Gradle on Windows. This PR fixes this.
Since Windows also has a maximum character count in the CLI, this was also fixed. This unfortunately means that generating a gradle SBOM on Windows could be slower, because we potentially have to run multiple commands instead of just the one!
Using powershell doesn't work, because it triggers gradlew.bat, which then again has the problem with a too long command line. I'm afraid this is the best we can do.