api / org.gradle.api.tasks.wrapper / Wrapper / getDistributionSha256Sum

getDistributionSha256Sum

@Incubating @Optional @Input open fun getDistributionSha256Sum(): String

The SHA-256 hash sum of the gradle distribution.

If not set, the hash sum of the gradle distribution is not verified.

The wrapper allows for verification of the downloaded Gradle distribution via SHA-256 hash sum comparison. This increases security against targeted attacks by preventing a man-in-the-middle attacker from tampering with the downloaded Gradle distribution.

Since
4.5