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

Gradle Wrapper validation failed after update to Gradle 8.5 #162

Closed
Omico opened this issue Dec 3, 2023 · 2 comments
Closed

Gradle Wrapper validation failed after update to Gradle 8.5 #162

Omico opened this issue Dec 3, 2023 · 2 comments

Comments

@Omico
Copy link

Omico commented Dec 3, 2023

See Omico/Gradm@839f5aa

I run sha256sum .\gradle-wrapper.jar locally and the result is d3b261c2820e9e3d8d639ed084900f11f4a86050a8f83342ade7b6bc9b0d2bdd which is the same as https://services.gradle.org/distributions/gradle-8.5-wrapper.jar.sha256

I have no idea why it shows c7b7b1c6cfacde8aa3c4485f2b367ff99c6ef1d57e2d4d98f4b7e0dcfecc4954 on the CI.

@Eterocell
Copy link

I've encountered exactly the same problem, even the same sha256 sum. It's because Git mistakenly consider the version 8.5 gradle-wrapper.jar file as a text file and automatically change the line ending CRLF to LF, though it was not the same behavior before version 8.5. Adding *.jar -text to your .gitattribute and regenerate the wrapper jar should fix the problem.

@Omico
Copy link
Author

Omico commented Dec 4, 2023

@Eterocell Thanks, this is exactly the problem I'm having. Appreciate your response!

@Omico Omico closed this as completed Dec 4, 2023
dvdmunckhof added a commit to dvdmunckhof/advent-of-code that referenced this issue Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants