I am trying to set wrapper properties in an init script for a custom a gradle distribution. This is so that when ‘gradle wrapper’ is run from the custom distribution it will already create the correct distributionUrl in ‘gradle/wrapper/gradle-wrapper.properties’. I am not sure how to go about doing thar as just having
rootProject {
wrapper { distributionUrl = 'http://foo/bar/....' }
}
fails to execute the initialisation script.