Skip to content

Avoiding task configuration doesn't work #6

@vanbv

Description

@vanbv
tasks {
    val needsSecrets by registering(GetVaultSecretTask::class) {
        // The task will always be configured
        throw RuntimeException()
    }
}

If you execute gradle build, there will always be an error. Expected result: when using gradle build creating it leads to an error, but registering does not. registering should only lead to an error when the task is called directly.

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