Validate gradlew scripts
See original GitHub issueAlso validate gradlew and gradlew.bat scripts.
These are not blobs so it is harder to overlook something, but I think these should be checked too.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:6 (3 by maintainers)
Top Results From Across the Web
The Importance of Validating the Gradle Wrapper | JD Porterfield
gradlew - A shell script used for running the build on Linux and Mac (as opposed to using a specific gradle version command...
Read more >Command-Line Interface - Gradle User Manual
The built-in gradle wrapper task generates a script, gradlew , that invokes a declared version of Gradle, downloading it beforehand if necessary. $...
Read more >Gradle check task essentials - Tom Gregory
Check is a task you run from the command line using ./gradlew check in Linux and Mac or gradlew check in Windows.
Read more >Run Your Gradle Build Anywhere with the Gradle Wrapper
Then, we can check if the version is duly updated by running the ./gradlew --version command. You can also change the version number...
Read more >Check if gradle tests pass in shell script - Stack Overflow
Why not just checking the exit status of ./gradlew ? If the script passes, the exit status will be 0, otherwise it will...
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

The verifier could normalize line endings (
gradlewtoLFandgradlew.battoCRLF) before doing the comparison (it might make sense to normalize toLFalways).Frankly speaking, I have not seen a case when users customized
gradlewscripts. I assume an opt-out would really help here: the extraskip-gradlew-scripts-validation: truewould make it explicit that the files are augmented on purpose.I would vote for an opt-out of the additional check (in the sense of security first).