Skip to content

Add @DisableCachingByDefault as hint why outputs are not cached#1666

Merged
nedtwigg merged 5 commits intodiffplug:mainfrom
skuzzle:main
Apr 6, 2023
Merged

Add @DisableCachingByDefault as hint why outputs are not cached#1666
nedtwigg merged 5 commits intodiffplug:mainfrom
skuzzle:main

Conversation

@skuzzle
Copy link
Copy Markdown
Contributor

@skuzzle skuzzle commented Apr 6, 2023

The @DisableCachingByDefault annotation (JavaDoc) will make it easier to determine why this task was not cached when inspecting a Build Scan.

Without this annotation, a gradle Build Scan will only show a generic message:
image

With the annotation, the Build Scan will show a more useful hint as to why this task was not cached:

image

@nedtwigg
Copy link
Copy Markdown
Member

nedtwigg commented Apr 6, 2023

Thanks!

@nedtwigg
Copy link
Copy Markdown
Member

nedtwigg commented Apr 6, 2023

If you disagree with the changes I made above, please let me know.

@nedtwigg nedtwigg enabled auto-merge April 6, 2023 21:37
@nedtwigg nedtwigg merged commit 88abf9a into diffplug:main Apr 6, 2023
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