Skip to content

Avoid accessing Task.project from task action #412

Open
@abstratt

Description

@abstratt

Please, avoid accessing Task.project from task action. This is going to be deprecated in Gradle 8.12, and forbidden in a future release.

Some occurrences:

def violations = new LintService().lint(project, onlyCriticalRules.get()).violations

def violations = new LintService().lint(project, false).violations

See: gradle/gradle#30860

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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