Skip to content

Commit

Permalink
Use wrapper getDistributionUrl method
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <[email protected]>
  • Loading branch information
dbwiddis committed Feb 9, 2023
1 parent e48cbc4 commit 3259c7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -531,12 +531,12 @@ allprojects {
wrapper {
distributionType = 'ALL'
doLast {
def sha256Sum = new String(new URL("${distributionUrl}.sha256").bytes)
def sha256Sum = new String(new URL(getDistributionUrl() + ".sha256").bytes)
propertiesFile << "distributionSha256Sum=${sha256Sum}\n"
println "Added checksum to wrapper properties"
// Update build-tools to reflect the Gradle upgrade
// TODO: we can remove this once we have tests to make sure older versions work.
project(':build-tools').file('src/main/resources/minimumGradleVersion').text = gradleVersion + System.getProperty("line.separator")
project(':build-tools').file('src/main/resources/minimumGradleVersion').text = gradleVersion + "\n"
println "Updated minimum Gradle Version"
}
}
Expand Down

0 comments on commit 3259c7f

Please sign in to comment.