Skip to content

Prevent gradle from skipping the IDE hook task due to cached results#2956

Merged
nedtwigg merged 2 commits into
diffplug:mainfrom
jdmnd:jdmnd/jj-uupkqmvzqlrp
Jun 3, 2026
Merged

Prevent gradle from skipping the IDE hook task due to cached results#2956
nedtwigg merged 2 commits into
diffplug:mainfrom
jdmnd:jdmnd/jj-uupkqmvzqlrp

Conversation

@jdmnd
Copy link
Copy Markdown

@jdmnd jdmnd commented Jun 2, 2026

Prevent the gradle UP-TO-DATE and FROM-CACHE build outcomes from interfering with spotless when run in the -PspotlessIdeHook mode.
Under this mode, build outputs are written to the specified input file (or stdout when run with -PspotlessIdeHookUseStdOut), and not the declared target dir, so spotless should run every time the format task is invoked.

Fixes #2365

@nedtwigg nedtwigg merged commit 0aebe48 into diffplug:main Jun 3, 2026
20 checks passed
@jdmnd jdmnd deleted the jdmnd/jj-uupkqmvzqlrp branch June 3, 2026 16:13
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.

Repeated use of IDE hook hits the cache when it shouldn't

2 participants