Skip to content

Comments

Enable build caching for GwtCompileTask#107

Merged
jiakuan merged 1 commit intomainfrom
feature/106-cacheable-task
Sep 13, 2025
Merged

Enable build caching for GwtCompileTask#107
jiakuan merged 1 commit intomainfrom
feature/106-cacheable-task

Conversation

@jiakuan
Copy link
Owner

@jiakuan jiakuan commented Sep 13, 2025

Summary

Enable build caching for GWT compilation tasks by adding the @CacheableTask annotation. This allows Gradle to cache and reuse compilation outputs when inputs haven't changed, significantly improving build performance.

  • Adds @CacheableTask annotation to GwtCompileTask
  • No changes to task behavior - only enables caching capability
  • All required inputs and outputs were already properly annotated

Impact

  • Performance improvement: GWT compilation can be skipped when inputs haven't changed (saves up to 6 minutes per build as reported in Could GwtCompileTask be @CacheableTask ? #106)
  • Better developer experience: Faster incremental builds when working on backend-only changes
  • CI optimization: Cached outputs can be shared across builds and machines with remote cache

Enable build caching for GWT compilation tasks to improve build performance.
When inputs haven't changed, the cached outputs will be reused, saving
significant compilation time (up to 6 minutes for unchanged GWT modules).
@jiakuan jiakuan requested a review from Copilot September 13, 2025 04:30
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 enables build caching for GWT compilation tasks by adding the @CacheableTask annotation to improve build performance. The change allows Gradle to cache and reuse compilation outputs when inputs haven't changed, potentially saving significant compilation time.

  • Adds @CacheableTask annotation to enable Gradle build caching
  • Imports the required CacheableTask class
  • No functional changes to the task behavior

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

@jiakuan jiakuan merged commit 6215c53 into main Sep 13, 2025
1 check passed
@jiakuan jiakuan deleted the feature/106-cacheable-task branch September 13, 2025 05:01
@lefevre00
Copy link

lefevre00 commented Sep 26, 2025

This is awesome, my build - including docker image build - run now in 2m20s
Caching output for this task allowed using caches for every next tasks

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.

2 participants