question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Review/support upcoming dependency verification in Gradle 6.2

See original GitHub issue

Gradle 6.2 will have integrated dependency verification for integrity and provenance.

Issue: https://github.com/gradle/gradle/issues/10443 Documentation PR: https://github.com/gradle/gradle/pull/11755

Note: as Gradle would switch to “verify all resolutions”, it would effectively prevent the operation of gradle-versions-plugin.

It looks like there will be ResolutionStrategy#disableDependencyVerification() API to temporary disable the verification.

Do you think that would be OK for G-V-P?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vlsicommented, Feb 7, 2020

@anuraaga , it is not enabled by default. It is activated by the presence of gradle/verification-metadata.xml file.

For instance, if you launch Gradle with --write-verification-metadata it will create a file. Then all subsequent Gradle executions would verify the dependencies and deny the resolution of unresolved ones.

1reaction
ben-manescommented, Dec 26, 2019

Thanks for the heads up. If we use Groovy’s obj.metaClass.respondsTo to reflectively check for that method, it could be added in a backwards compatible fashion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gradle 6.2 Release Notes
This release adds built-in dependency checksum and signature verification, provides a shareable read-only dependency cache and emits helpful documentation links ...
Read more >
Verify hashes and PGP signatures for dependencies ... - GitHub
Expected Behavior Gradle should allow to declare the expected hashes ... Review/support upcoming dependency verification in Gradle 6.2 ...
Read more >
Spring Boot Gradle Plugin Reference Guide
It allows you to package executable jar or war archives, run Spring Boot applications, and use the dependency management provided by spring-boot ...
Read more >
Using the Gradle build system in the Eclipse IDE - Tutorial
Install Eclipse Gradle (Buildship) tooling. 3. How to create a Gradle project for Java with Eclipse. 4. How to create a new Gradle...
Read more >
CVE-2022-31156 Detail - NVD
Dependency verification is a security feature in Gradle Build Tool ... In versions 6.2 through 7.4.2, there are some cases in which Gradle...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found