Skip to content

Make all Gradle tasks cacheable #1875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 1, 2019
Merged

Make all Gradle tasks cacheable #1875

merged 4 commits into from
Sep 1, 2019

Conversation

3flex
Copy link
Member

@3flex 3flex commented Aug 31, 2019

Update annotations on tasks that were not cacheable to make them cacheable.

Using @get: on annotations is the style used in Gradle guides, and may in fact be required to get accurate results from validateTaskProperties task, so have updated existing annotations to use the get use-site target.

Also tweaked a couple of annotations in the Detekt task so they're correctly set on the internal & public parameters.

Fixes #1856

@3flex
Copy link
Member Author

3flex commented Aug 31, 2019

OOM errors in CI.

@3flex 3flex merged commit d074c36 into detekt:master Sep 1, 2019
@3flex 3flex deleted the 1856-fix branch September 1, 2019 09:04
sowmyav24 pushed a commit to sowmyav24/detekt that referenced this pull request Sep 2, 2019
* Make DetektCreateBaselineTask cacheable

* Make DetektGenerateConfigTask cacheable

* Make IDEA tasks cacheable

* Update Detekt task annotations for consistency
sowmyav24 pushed a commit to sowmyav24/detekt that referenced this pull request Sep 2, 2019
* Make DetektCreateBaselineTask cacheable

* Make DetektGenerateConfigTask cacheable

* Make IDEA tasks cacheable

* Update Detekt task annotations for consistency
sowmyav24 pushed a commit to sowmyav24/detekt that referenced this pull request Sep 2, 2019
* Make DetektCreateBaselineTask cacheable

* Make DetektGenerateConfigTask cacheable

* Make IDEA tasks cacheable

* Update Detekt task annotations for consistency
@arturbosch arturbosch added this to the 1.0.2 milestone Sep 6, 2019
sowmyav24 pushed a commit to sowmyav24/detekt that referenced this pull request Sep 17, 2019
* Make DetektCreateBaselineTask cacheable

* Make DetektGenerateConfigTask cacheable

* Make IDEA tasks cacheable

* Update Detekt task annotations for consistency
@arturbosch arturbosch modified the milestones: 1.0.2, 1.1.0 Sep 17, 2019
smyachenkov pushed a commit to smyachenkov/detekt that referenced this pull request Dec 9, 2019
* Make DetektCreateBaselineTask cacheable

* Make DetektGenerateConfigTask cacheable

* Make IDEA tasks cacheable

* Update Detekt task annotations for consistency
smyachenkov pushed a commit to smyachenkov/detekt that referenced this pull request Dec 9, 2019
* Make DetektCreateBaselineTask cacheable

* Make DetektGenerateConfigTask cacheable

* Make IDEA tasks cacheable

* Update Detekt task annotations for consistency
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.

Most Gradle tasks not cacheable
3 participants