-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execution failed for task ':cyclonedxBom'. #256
Comments
Add this line build.gradle |
Similar error with your addition:
build.gradle content:
I also tried with:
|
Had the same problem and went on to debug the issue:
Make sure to define a |
Thanks for reporting this. Do you have a sample project reproducer ? When building SBOM, we try to resolve all dependencies from all configurations, here it looks like dependencies coming from some configurations cannot be resolved due to their Gradle variant. We may need to add some specific code to revolve the dependency with the correct variant. |
Sorry, it looks I'm not clear: the problem is solved when adding a |
@zmto is that ok for you too ? |
I also got this error in a multi-project project. I added this plugin (version 1.7.3) to the I tried adding all of my configs to I then tried moving the plugin declaration to the root project plugins {
id 'org.cyclonedx.bom' version '1.7.3' apply false
}
project(':subproject') {
apply plugin: 'org.cyclonedx.bom'
} This fixed the error, and I was able to generate a BOM in XML format. |
Sorry if I misunderstand. I am neither using a group or multi-project. |
Not at all, as @canatella said, the issue can be fix by adding the group property in your |
Apologies for the confusion. I realized that my error was actually different from the error in this issue. I submitted a new issue here. |
I also have this problem. I tried to define group and version:
|
If any of the devs are looking for an open source project that reproduces this issue, we just tried to integrate CycloneDX into the Android Wikipedia app. Here is the diff to get things working: Most likely these |
I'm sure it's one of the most wanted features for this project. Feel free to contribute it! |
Main issue: #478 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello,
Sorry if it's a stupid issue. I am new to this and I am trying to use cyclonedx to build a sbom for my android app, but I can't get it working.
The following example is with the no activity template from android studio.
Gradle. version:
Trying to run cyclonedx
My build.gradle looks like this:
I tried to add this but it didn't do the trick...
Any idea how to solve this?
The text was updated successfully, but these errors were encountered: