Skip to content

Enable Gradle configuration cache in project template#862

Merged
CedNaru merged 4 commits into
utopia-rise:masterfrom
DSteve595:gradle-configcache
Apr 20, 2026
Merged

Enable Gradle configuration cache in project template#862
CedNaru merged 4 commits into
utopia-rise:masterfrom
DSteve595:gradle-configcache

Conversation

@DSteve595

@DSteve595 DSteve595 commented Sep 23, 2025

Copy link
Copy Markdown
Contributor

With this and the changes in utopia-rise/kotlin-preprocessors#4, Gradle Configuration Cache can be enabled for downstream projects, which should give a nice speed boost since the same task is run over and over again during development.

This does not yet enable the config cache in the template project. Need to bring in that kotlin-preprocessors change first. Done!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the generateGdIgnoreFilesTask to be compatible with Gradle Configuration Cache by moving project and build directory access to configuration-time providers instead of execution-time access.

  • Replaces execution-time project property access with configuration-time providers
  • Moves plugin existence check from doFirst to onlyIf condition
  • Uses Gradle's layout providers for directory access instead of direct property access

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@chippmann

Copy link
Copy Markdown
Contributor

@DSteve595 the new preprocessor version is now deployed (0.3.0). So this PR can be updated and merged :-)
Thanks a lot for your work!

@DSteve595 DSteve595 changed the title Read Gradle project/build dirs in config cache compatible way Enable Gradle configuration cache in project template Oct 20, 2025
@DSteve595

Copy link
Copy Markdown
Contributor Author

Bump @CedNaru @chippmann, would love to get this in!

@CedNaru CedNaru merged commit 36081a7 into utopia-rise:master Apr 20, 2026
58 checks passed
@DSteve595 DSteve595 deleted the gradle-configcache branch April 21, 2026 05:59
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.

4 participants