Skip to content

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

Open
jdmnd wants to merge 2 commits into
diffplug:mainfrom
jdmnd:jdmnd/jj-uupkqmvzqlrp
Open

Prevent gradle from skipping the IDE hook task due to cached results#2956
jdmnd wants to merge 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

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

1 participant