Skip to content

provide way to get task that can be verified at plugin compilation time #23

@mathjeff

Description

@mathjeff

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions