cdxgen icon indicating copy to clipboard operation
cdxgen copied to clipboard

[Gradle] SBOM generation didn't work on Windows

Open malice00 opened this issue 1 year ago • 1 comments

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!

malice00 avatar Feb 03 '25 01:02 malice00

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.

malice00 avatar Apr 13 '25 08:04 malice00