-
-
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 ':automotive:cyclonedxBom' #259
Comments
It got works when I added configuration: **But when I tried on another project with flavor it got failed(
The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.ProductFlavor:environment' with value 'prod', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.1.0', attribute Note: if I commented out the product flavors and source sets in the build.gradle CycloneDX is able to generate the output file. |
I am able to fix this issue by skipping config for flavors like: As in my case flavors are : nonprod and prod |
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. |
I have tried cyclonedxBom in an android project with the Gradle version
classpath 'com.android.tools.build:gradle:7.0.2'
and kotlin version
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20"
cycloneDxBom: plugins {
id 'org.cyclonedx.bom' version '1.7.3'
}
apply plugin: 'org.cyclonedx.bom'
and every time Build failed with an exception.
Execution failed for task ':automotive:cyclonedxBom'.
Note: When I lowered the version of Gradle to 3.6.4( classpath 'com.android.tools.build:gradle:3.6.4') and build executed successfully and cycloneDx was able to generate reports files(bom.json and bom.xml)
The text was updated successfully, but these errors were encountered: