Skip to content
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

Update to Gradle 5.6 #433

Merged
merged 6 commits into from
Aug 19, 2019
Merged

Update to Gradle 5.6 #433

merged 6 commits into from
Aug 19, 2019

Conversation

ZacSweers
Copy link
Contributor

Quick followup from #428. Hoping this allows removing the guava classpath dependency as well, will test

@ZacSweers
Copy link
Contributor Author

I suspect the new failure is due to the restricted classpath changes that kicked in with 5.6. Will investigate

@nedtwigg
Copy link
Member

I just cleared the travis cache and restarted the build. If it works now, then the problem was #429 all along. It seems that the newer gradle versions are less friendly to our TestProvisioner.

@ZacSweers
Copy link
Contributor Author

ZacSweers commented Aug 19, 2019 via email

@JLLeitschuh
Copy link
Member

JLLeitschuh commented Aug 19, 2019

@nedtwigg would you be so kind as to implement a policy to check the SHA256 checksum of all of the gradle-wrapper.jar files that get contributed externally?

Since the gradle-wrapper.jar files are big blobs of binary, there is no way to check that they are valid & not maliciously compromised.

Here's the guide to checking the SHA256 checksums:
https://docs.gradle.org/current/userguide/gradle_wrapper.html#wrapper_checksum_verification

@ZacSweers, please don't take this request personally, this is fundamentally a security of the supply chain thing.

@nedtwigg
Copy link
Member

Roger @JLLeitschuh, thanks for the suggestion. It would be cool if there were a service like this:

https://gradle.org/gradle-wrapper-is-secure/github/diffplug/spotless/pull/433

Which then shows a checkmark if the wrapper's checksum matches. Maybe even a https://shields.io/ badge that users could put into the README, so that if a bad gradle.wrapper ever got merged to master, it would show up there. In the meantime, I'll keep this in mind when merging PRs of this sort for my opensource projects.

@ZacSweers
Copy link
Contributor Author

ZacSweers commented Aug 19, 2019 via email

@nedtwigg
Copy link
Member

A couple things:

  • I verified the checksum manually
  • If gradle adopts an official "autoverify the gradle jar this way" I'd be happy to adopt it, but exploring the solution space is not high on my priority list
  • It shouldn't matter whether we cache the ~/.gradle/wrapper folder, but apparently it does.

@nedtwigg nedtwigg merged commit d7ea2f3 into diffplug:master Aug 19, 2019
@ZacSweers ZacSweers deleted the z/gradle56 branch August 19, 2019 23:23
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.

3 participants