Last active
June 25, 2021 10:57
-
-
Save maxirosson/798dc7aa7bfa3da5bec77cd3556b9e61 to your computer and use it in GitHub Desktop.
Verify the integrity of the Gradle Wrapper JAR. https://medium.com/dipien/3-tips-to-configure-the-gradle-wrapper-distribution-a46f9b20ddde
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd gradle/wrapper | |
| gradleVersion=$(grep "distributionUrl" gradle-wrapper.properties | grep -Po "(\d+\.)+\d+") | |
| curl --location --output gradle-wrapper.jar.sha256 https://services.gradle.org/distributions/gradle-${gradleVersion}-wrapper.jar.sha256 | |
| echo " gradle-wrapper.jar" >> gradle-wrapper.jar.sha256 | |
| sha256sum --check gradle-wrapper.jar.sha256 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment