Review/support upcoming dependency verification in Gradle 6.2
See original GitHub issueGradle 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:
- Created 4 years ago
- Comments:12 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.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.