After applying and configuring the spdx-gradle-plugin, we'd like to include the spdx-building tasks in our build graph (making spdxSbomForRelease a dependency of another one of our tasks that we're already invoking).
something like https://android-review.git.corp.google.com/c/platform/frameworks/support/+/2592549/8/buildSrc/private/src/main/kotlin/androidx/build/sbom/Sbom.kt#283 which says
tasks.named("spdxSbomForRelease")
If I make a spelling mistake in this string or if the task name changes in the future, though, this error would only appear when trying to run the corresponding configuration logic rather than when trying to compile this logic into a plugin.
It could be nice to have some way to directly get the task from an SpdxSbomExtension's Target
After applying and configuring the spdx-gradle-plugin, we'd like to include the spdx-building tasks in our build graph (making spdxSbomForRelease a dependency of another one of our tasks that we're already invoking).
something like https://android-review.git.corp.google.com/c/platform/frameworks/support/+/2592549/8/buildSrc/private/src/main/kotlin/androidx/build/sbom/Sbom.kt#283 which says
If I make a spelling mistake in this string or if the task name changes in the future, though, this error would only appear when trying to run the corresponding configuration logic rather than when trying to compile this logic into a plugin.
It could be nice to have some way to directly get the task from an SpdxSbomExtension's Target