-
-
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
Automatically skip unsupported configurations for Android projects #478
Comments
I had to exclude the following, some of them are not in the list above: |
Edit: I got it working by I cannot seem to get this running with the workaround for the project I am working on.
This would be my
It seems to be ignoring Additionally, it should be mentioned that at first I was using Additionally, I tried to add my projects manually and add cyclonedxBom {
projectType = "application"
destination = file("build/reports")
outputName = "bom"
outputFormat = "json"
includeConfigs = [
"developmentDebug",
"developmentDebugCompileClasspath",
"developmentDebugRuntimeClasspath",
]
skipConfigs = [
"debugAndroidTestCompileClasspath",
"debugApiElements",
"debugCompileClasspath",
"debugRuntimeElements",
"debugtUnitTestCompileClasspath",
"debugUnitTestRuntimeClasspath",
"developmentAndroidTestCompileClasspath",
"developmentApiElements",
"developmentCompileClasspath",
"developmentRuntimeElements",
"developmentUnitTestCompileClasspath",
"developmentUnitTestRuntimeClasspath",
"developmentDebugAndroidTestCompileClasspath",
"developmentDebugApiElements",
"developmentDebugCompileClasspath",
"developmentDebugRuntimeElements",
"developmentDebugUnitTestCompileClasspath",
"developmentDebugUnitTestRuntimeClasspath",
"debugCompileClasspath",
"debugAndroidTestCompileClasspath",
"debugUnitTestCompileClasspath",
"debugUnitTestRuntimeClasspath",
"debugApiElements",
"debugRuntimeElements",
"alphaReleaseApiElements",
"alphaReleaseAndroidTestCompileClasspath",
"alphaReleaseUnitTestCompileClasspath",
"alphaReleaseUnitTestRuntimeClasspath",
"alphaReleaseApiElements",
"alphaReleaseRuntimeElements",
"fdroidDebugApiElements",
"fdroidDebugAndroidTestCompileClasspath",
"fdroidDebugUnitTestCompileClasspath",
"fdroidDebugUnitTestRuntimeClasspath",
"fdroidDebugApiElements",
"fdroidDebugRuntimeElements",
"fdroidReleaseApiElements",
"fdroidReleaseAndroidTestCompileClasspath",
"fdroidReleaseUnitTestCompileClasspath",
"fdroidReleaseUnitTestRuntimeClasspath",
"fdroidReleaseApiElements",
"fdroidReleaseRuntimeElements",
"devDebugApiElements",
"devDebugAndroidTestCompileClasspath",
"devDebugUnitTestCompileClasspath",
"devDebugUnitTestRuntimeClasspath",
"devDebugApiElements",
"devDebugRuntimeElements",
"prodDebugApiElements",
"prodDebugAndroidTestCompileClasspath",
"prodDebugUnitTestCompileClasspath",
"prodDebugUnitTestRuntimeClasspath",
"prodDebugApiElements",
"prodDebugRuntimeElements",
"betaReleaseApiElements",
"betaReleaseAndroidTestCompileClasspath",
"betaReleaseUnitTestCompileClasspath",
"betaReleaseUnitTestRuntimeClasspath",
"betaReleaseApiElements",
"betaReleaseRuntimeElements",
"prodReleaseApiElements",
"prodReleaseAndroidTestCompileClasspath",
"prodReleaseUnitTestCompileClasspath",
"prodReleaseUnitTestRuntimeClasspath",
"prodReleaseApiElements",
"prodReleaseRuntimeElements",
"customReleaseApiElements",
"customReleaseAndroidTestCompileClasspath",
"customReleaseUnitTestCompileClasspath",
"customReleaseUnitTestRuntimeClasspath",
"customReleaseApiElements",
"customReleaseRuntimeElements",
"devReleaseApiElements",
"devReleaseAndroidTestCompileClasspath",
"devReleaseUnitTestCompileClasspath",
"devReleaseUnitTestRuntimeClasspath",
"devReleaseApiElements",
"devReleaseRuntimeElements",
"betaDebugApiElements",
"betaDebugAndroidTestCompileClasspath",
"betaDebugUnitTestCompileClasspath",
"betaDebugUnitTestRuntimeClasspath",
"betaDebugApiElements",
"betaDebugRuntimeElements",
"customDebugApiElements",
"customDebugAndroidTestCompileClasspath",
"customDebugUnitTestCompileClasspath",
"customDebugUnitTestRuntimeClasspath",
"customDebugApiElements",
"customDebugRuntimeElements",
"alphaDebugApiElements",
"alphaDebugAndroidTestCompileClasspath",
"alphaDebugUnitTestCompileClasspath",
"alphaDebugUnitTestRuntimeClasspath",
"alphaDebugApiElements",
"alphaDebugRuntimeElements",
"releaseUnitTestCompileClasspath",
"releaseUnitTestRuntimeClasspath",
"releaseApiElements",
"releaseRuntimeElements",
"debugApiElements",
"releaseApiElements",
"debugRuntimeElements",
"releaseRuntimeElements",
"debugCompileClasspath",
"debugAndroidTestCompileClasspath",
"debugUnitTestCompileClasspath",
"releaseUnitTestCompileClasspath",
"debugUnitTestRuntimeClasspath",
"releaseUnitTestRuntimeClasspath",
"releaseSourcesElements",
"debugSourcesElements"
]
skipProjects = [
"app-testing"
]
}
} But the error remains. If I comment out |
Hi, I have an Android multi-module project. I'm using plugin version 1.8.2 because my project is still on Gradle 7.6. I applied the skipConfigs settings you suggested in your post, but the error persists:
this is my init.gradle script:
Do you have some suggestions ? |
We have tons of issues related to running this plugin with Android projects.
For most of them the solution is to skip some configurations which cannot be handled by the plugin for some reason.
Sample error log:
Sample workaround:
The text was updated successfully, but these errors were encountered: