Skip to content

Enable Gradle Configuration Cache#3127

Draft
MajorTanya wants to merge 1 commit intomihonapp:mainfrom
MajorTanya:enable-gradle-configuration-cache
Draft

Enable Gradle Configuration Cache#3127
MajorTanya wants to merge 1 commit intomihonapp:mainfrom
MajorTanya:enable-gradle-configuration-cache

Conversation

@MajorTanya
Copy link
Copy Markdown
Member

Gradle did a magic: https://docs.gradle.org/9.4.1/userguide/configuration_cache.html

Gradle’s Build Cache has long optimized the execution phase by reusing previously built outputs and parallelizing as much work as possible.

The Configuration Cache builds on this idea of work avoidance and parallelization. When enabled, the Configuration Cache allows Gradle to skip the configuration phase entirely if nothing that affects the build configuration (such as build scripts) has changed. Additionally, Gradle applies performance optimizations to task execution.

In the docs, they also note the following:

This feature is not enabled by default and has the following limitations:

It does not yet support all Core Gradle Plugins and features. Full support is in progress.

Your build and its plugins may require modifications to meet the Configuration Cache requirements.

IDE imports and syncs do not yet use the Configuration Cache.

Continuous Integration (CI) support is actively evolving.

Since Gradle 9.0.0 the Configuration Cache is the preferred mode of execution.

@MajorTanya
Copy link
Copy Markdown
Member Author

Build failure expected since the Configuration Cache is blocked by the change in #3118.

@MajorTanya MajorTanya force-pushed the enable-gradle-configuration-cache branch from 6f07c0e to 9a27362 Compare March 23, 2026 16:29
@MajorTanya MajorTanya requested a review from AntsyLich March 23, 2026 17:00
@MajorTanya
Copy link
Copy Markdown
Member Author

Don't know if those limitations actually apply to us or if they're still relevant in general. Especially since Gradle v9 prefers that mode anyway so you'd think it's supported to some extent nowadays?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant