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

Make use of dependency verification feature of Gradle v6.2 #1072

Open
danilovesky opened this issue Feb 19, 2020 · 0 comments
Open

Make use of dependency verification feature of Gradle v6.2 #1072

danilovesky opened this issue Feb 19, 2020 · 0 comments

Comments

@danilovesky
Copy link
Member

Dependency verification is automatically enabled once the configuration file for dependency verification is discovered. This configuration file is located at $PROJECT_ROOT/gradle/verification-metadata.xml. This file minimally consists of the following:

<?xml version="1.0" encoding="UTF-8"?>
<verification-metadata>
   <configuration>
      <verify-metadata>true</verify-metadata>
      <verify-signatures>false</verify-signatures>
    </configuration>
</verification-metadata>

With such a minimal configuration file, a project using any external dependency or plugin would immediately start failing because it doesn’t contain any checksum to verify.

This file can be automatically generated with all the checksums as follows:

gradle --write-verification-metadata sha256 help

It may be necessary to clear Gradle caches:

rm -rf ~/.gradle/caches/

More details on dependency verification:
https://docs.gradle.org/6.2/userguide/dependency_verification.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant