You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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
The text was updated successfully, but these errors were encountered:
there is the aggregate task spdxSbom, but I'm not sure I know of a mechanism to do this, since it's dynamically created, and so are the targets? I guess you could make this a var in the build file?
valSBOM_TARGET="release"// or const?
sbomExtension.targets.create(SBOM_TARGET) { target ->...
...
}
project.addToBuildOnServer(tasks.named("spdxSbomFor"+SBOM_TARGET.capitalize(/* or whatever the non deprecated method is */)))
...
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
The text was updated successfully, but these errors were encountered: