google / google/protobuf-gradle-plugin

Protobuf plugin causes eager task configuration

Open
#643 9 comments 2 reactions 1 assignee Claimed by @rougsig View on GitHub
gradle compatibility
Dominant language
Groovy
Stars
1.8k
Forks
288
PR merge metrics
No merged PRs in 30d

Description

[This line uses `all` on a task collection](https://github.com/google/protobuf-gradle-plugin/blob/master/src/main/groovy/com/google/protobuf/gradle/ProtobufPlugin.groovy#L160) which causes the tasks to be eagerly configured. Here is the section in the documentation which explains the API which should be avoided and its replacement: https://docs.gradle.org/current/userguide/task_configuration_avoidance.html#sec:old_vs_new_configuration_api_overview

Here is the line in the Protobuf Gradle Plugin which is causing eager task configuration. The simplest fix would be to remove `.all()`.
https://github.com/google/protobuf-gradle-plugin/blob/master/src/main/groovy/com/google/protobuf/gradle/ProtobufPlugin.groovy#L160

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.