Skip to content

feat: make plugin tasks cacheable and relocatable#378

Closed
timothyfroehlich wants to merge 1 commit intoci-infra-updatefrom
make-tasks-cacheable
Closed

feat: make plugin tasks cacheable and relocatable#378
timothyfroehlich wants to merge 1 commit intoci-infra-updatefrom
make-tasks-cacheable

Conversation

@timothyfroehlich
Copy link
Member

@timothyfroehlich timothyfroehlich commented Mar 9, 2026

Based on PR #379

Chain of upstream PRs & tree of downstream PRs as of 2026-03-10

To support the Gradle Build Cache, tasks must explicitly opt-in and declare how their inputs should be tracked.

This PR:

  • Adds @CacheableTask to DependencyTask and LicensesTask.
  • Updates ArtifactFiles to use @InputFile and @PathSensitive(PathSensitivity.NONE) for its internal fields.
  • Marks the artifactFiles map in LicensesTask as @Nested to ensure its contents are part of the cache key.

These changes allow validatePlugins to pass on modern Gradle versions and improve build performance by enabling FROM-CACHE hits.

Fixes #246 (Implementation).

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