Skip to content

Make the generation and/or execution of the extractIncludedProto task smarter #125

Open

Description

I have a large, multi-project gradle build with the follow scenarios:

project1: Has protos to generate, but no dependencies that include protobuf files
project2: Has protos to generate, and a dependency on project1/external dependency that includes protos, but project proto's don't include any in project1 (no external protos)
project3: Has protos to generate, and a dependency on project1/external dependency, and project protos do include files from project1 (external protos).

Our project includes all three of these scenarios in some variation or another. The sum of the extractIncluded proto tasks takes some 15%-20% of our build time. Because the files are not in a single dependency, we can't use the Gradle task cache the results of the extractIncluded tasks.

We are using Gradle 3.5, with the task cache, parallel and parallel.intra enabled.

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions