Skip to content

Gradle ProtobufPluginAction breaks configuration cache #51459

Description

@tommyk-gears

After the changes in 4.1.1 the generateProto task is no longer compatible with gradle configuration cache.

I get this error message when i try to use generateProto with configuration cache enabled (on 4.1.0 it works with configuration cache);

The cause seems to be that protobuf.generateProtoTasks(this::configureGenerateProtoTasks); is called inside the lambda sent to configureEach here. I think it can be fixed by just moving that call outside the lambda (and guard it by its own if (plugins.findByName("grpc") != null)).

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

    status: blockedAn issue that's blocked on an external project changestatus: waiting-for-triageAn issue we've not yet triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions