Skip to content

Conversation

@DSteve595
Copy link
Contributor

@DSteve595 DSteve595 commented Sep 23, 2025

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!

Copy link
Contributor

Copilot AI left a comment

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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants