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

setDistributionSha256Sum

@Incubating open fun setDistributionSha256Sum(distributionSha256Sum: String): Unit

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