Skip to content

Gradle configuration time too slow for development #2651

@anuraaga

Description

@anuraaga

I've noticed lately that during development when I have to retry tests, it's slowed down a lot since configuration time in our project seems unusually slow. The output in IDE will include something like this

> Task :buildSrc:check UP-TO-DATE
> Task :buildSrc:build UP-TO-DATE
> Configure project :benchmark
Inferred project: opentelemetry-java-instrumentation, version: 1.1.0-SNAPSHOT
> Task :testing-common:processResources NO-SOURCE
> Task :instrumentation-api:sqlSanitizerJflex UP-TO-DATE

And it takes about 7s on my Macbook Pro 16 to move from

> Configure project :benchmark
Inferred project: opentelemetry-java-instrumentation, version: 1.1.0-SNAPSHOT

to

> Task :testing-common:processResources NO-SOURCE

I don't think it's supposed to take this long, and dominates the entire time for small test runs (or even many agent tests).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:buildIssues about build infra, both local and centralcontribution welcomeRequest makes sense, maintainers probably won't have time, contribution would be welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions