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)).
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
generateProtowith 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 ownif (plugins.findByName("grpc") != null)).