Of course, if someone manages to man-in-the-middle attack the zip download then they are probably also modifying the sha256 download. So you are loosing that protection when automatically updating to a new release.
The machine readable directory with the download urls for the distributions and checksums is at Gradle Version Information. There you can get JSONs for the different release channels or all together.