-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Kotlin Script, Android Support? #341
Comments
I was able to almost get this working, by configuring like this: tasks.withType<CycloneDxTask>().configureEach {
setIncludedConfigs(listOf("${variant}CompileClasspath", "${variant}RuntimeClasspath"))
} per #299 (comment) instead of using However, my project depends on many modules (android library projects), which in turn have their own dependencies. As soon as I hit the first library project I get the same errors. |
instead of |
@mandrachek were you able to resolve the issue? I am facing exactly the same problem... |
No. adding configuration: "default" to every dependency isn't realistic for the size of my project, so no luck. I wound up using the com.jaredsburrows.licenseReport plugin instead. |
I was able to use the workaround mentioned at jk1/Gradle-License-Report#199 (comment)
Relevant docs: https://docs.gradle.org/current/userguide/variant_attributes.html |
The hack does not work for me 🤔 Even with a fresh android project or with this example project https://github.com/android/nowinandroid I could not get it to run and create a sbom with contents. Is there any plan to make this plugin work with Android at all? |
I'm attempting to use this plugin on an Android project, running Android Gradle Plugin and Gradle versions 8.1.1, kotlin script based build.
I've added the plugin with
apply false
in my top level project, and include it my app module. However when I attempt to configure it withI get an a couple of exceptions:
The first exception is thrown even with just an empty
cyclonedxBom {}
. It appears the configuration does not work with Kotlin script (build.gradle.kts).If I attempt to run the task without the configuration I get a whole bunch of errors.
It would appear that the plugin is not android friendly (hence attempting to control the included configurations).
The text was updated successfully, but these errors were encountered: