Running cdxgen tool on gradle project failed with error #1041
Unanswered
MohammedAziz02
asked this question in
Q&A
Replies: 1 comment 4 replies
-
@MohammedAziz02 Can you get some help from gradle experts? Doesn't look like a cdxgen bug. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to execute the cdxgen tool on a gradle project and include only runTime and compile dependencies on : this one, I used the command : cdxgen -t gradle -o BOM.json --spec-version 1.4 --fail-on-error with env variable like this GRADLE_ARGS="--configuration runtimeClassPath",
but it's failed with the error :
Executing /gradlew properties -q --console plain --build-cache --configuration runtimeClassPath in .
project okafka client lib
FAILURE: Build failed with an exception.
Problem configuring task :properties from command line.
BUILD FAILED in 228ms
cdxgen container image bundles Java 21 with gradle 8 which might be incompatible.
ghcr.io/appthreat/cdxgen-java:v10
.Executing /gradlew dependencies -q --console plain --build-cache --configuration runtimeClassPath in .
project okafka client lib
FAILURE: Build failed with an exception.
What went wrong:
Configuration 'runtimeClassPath' not found in configuration container.
Try:
Beta Was this translation helpful? Give feedback.
All reactions