Git Product home page Git Product logo

Comments (5)

dexX7 avatar dexX7 commented on May 31, 2024

Did you really download gradle-2.7-bin.zip, when you run ./gradlew, or could it be that the wrapper used an already cached package?

I changed the distributionSha256Sum, and the verification worked as expected (i.e. failed):

$ ./gradlew 
Downloading https://services.gradle.org/distributions/gradle-2.7-bin.zip
...
Verification of Gradle distribution failed!

Your Gradle distribution may have been tampered with.
Confirm that the 'distributionSha256Sum' property in your gradle-wrapper.properties file is correct and you are downloading the wrapper from a trusted source.

 Distribution Url: https://services.gradle.org/distributions/gradle-2.7-bin.zip
Download Location: ~/.gradle/wrapper/dists/gradle-2.7-bin/4s0fcuuppw3tjb1sxpzh16mne/gradle-2.7-bin.zip
Expected checksum: 'cde43b90945b5304c43ee36e58aab4cc6fb3a3d5f9bd9449bb1709a68371cb08'
  Actual checksum: 'cde43b90945b5304c43ee36e58aab4cc6fb3a3d5f9bd9449bb1709a68371cb06'

However, after resetting the file hash, and properly downloading everything, changing the hash had no effect.

from consensusj.

msgilligan avatar msgilligan commented on May 31, 2024

I see. Looks like my mistake. I'll try changing the hash, removing the download, and trying again.

from consensusj.

msgilligan avatar msgilligan commented on May 31, 2024

Yes, changing the hash in gradle-wrapper.properties then running:

rm -rf ~/.gradle/wrapper/dists/gradle-2.7-bin/

catches the error.

They made a performance enhancement in 2.7 that prevents the same test I used on 2.6 from verify their verification

It would be nice if there was an option to force the check. I made that request on the resolved issue. We'll see if the notice.

from consensusj.

msgilligan avatar msgilligan commented on May 31, 2024

Sterling from Gradle says we can force a check by

by just running a single build with a different gradle user home (e.g., gradlew -g /path/to/somewhere help).

from consensusj.

chagai95 avatar chagai95 commented on May 31, 2024

don't know why commenting was locked here renovatebot/renovate#6187

but solution 2 worked for me, just deleted the line, all the rest was too complicated, so if anyone like me just wants to get it to work just delete the distributionSha256Sum line in gradle-wrapper.properties

from consensusj.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.