Skip to content

Read Gradle build dir in config cache compatible way#4

Merged
piiertho merged 2 commits into
utopia-rise:mainfrom
DSteve595:gradle-configcache
Sep 23, 2025
Merged

Read Gradle build dir in config cache compatible way#4
piiertho merged 2 commits into
utopia-rise:mainfrom
DSteve595:gradle-configcache

Conversation

@DSteve595

Copy link
Copy Markdown
Contributor

This makes the task compatible with Gradle Configuration Cache, and enables that in the sample. Needed for enabling config cache in godot-kotlin-jvm.

Copilot AI left a comment

Copy link
Copy Markdown

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 makes the Gradle plugin compatible with Gradle Configuration Cache by replacing direct access to project.buildDir with the configuration cache-safe project.layout.buildDirectory provider API.

  • Replaces deprecated project.buildDir with configuration cache-compatible provider API
  • Enables Gradle Configuration Cache in the sample project configuration

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
samples/gradle.properties Enables Gradle Configuration Cache in the sample project
kotlin-preprocessors/src/main/kotlin/com/utopiarise/kotlin/preprocessors/gradle/PreProcessorPlugin.kt Updates task to use configuration cache-compatible build directory provider

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

@piiertho piiertho merged commit d9c7f44 into utopia-rise:main Sep 23, 2025
1 check passed
@DSteve595 DSteve595 deleted the gradle-configcache branch September 23, 2025 17:01
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.

3 participants