Skip to content

Avoid accessing Task.project from task action #412

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions