Skip to content

Conversation

@jdm2212
Copy link
Contributor

@jdm2212 jdm2212 commented Mar 15, 2019

Before this PR

Caching checkstyle results isn't possible due to same issue as in palantir/gradle-conjure#116

I can share an internal build scan pointing to this as the culprit.

After this PR

Caching checkstyleMain results should be possible.

@jdm2212 jdm2212 requested a review from a team as a code owner March 15, 2019 21:06
@carterkozak
Copy link
Contributor

Is this only on gradle 5.1+ as well?

@jdm2212
Copy link
Contributor Author

jdm2212 commented Mar 15, 2019

probably? it's the same issue -- and we're on 5.2.1

@iamdanfox
Copy link
Contributor

👍 As a long-term solution (and hopefully to prevent regressions on this), I started writing some gradle plugin specific error-prone rules here: https://github.com/iamdanfox/gradle-clippy.

Seems like actually passing a lambda do a doLast is a much more obviously wrong thing that the other lints I already had!

@iamdanfox iamdanfox changed the title [improvement] Avoid lambda to allow build caching of checkstyle results [fix] Avoid lambda to allow build caching of checkstyle results Mar 18, 2019
@bulldozer-bot bulldozer-bot bot merged commit f6b7755 into palantir:develop Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants