File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1+ distributionBase =GRADLE_USER_HOME
2+ distributionPath =wrapper/dists
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-4.7-all.zip
4+ zipStoreBase =GRADLE_USER_HOME
5+ zipStorePath =wrapper/dists
16distributionSha256Sum =203f4537da8b8075e38c036a6d14cb71b1149de5bf0a8f6db32ac2833a1d1294
Original file line number Diff line number Diff line change @@ -440,14 +440,15 @@ task run(type: Run) {
440440
441441task wrapper (type : Wrapper ) {
442442 distributionType = DistributionType . ALL
443- jarFile = " ${ project.projectDir } /. gradle-wrapper/gradle-wrapper.jar"
443+ jarFile = file( ' . gradle-wrapper/gradle-wrapper.jar' )
444444 doLast {
445445 final DistributionLocator locator = new DistributionLocator ()
446446 final GradleVersion version = GradleVersion . version(gradleVersion)
447447 final URI distributionUri = locator. getDistributionFor(version, distributionType. name(). toLowerCase(Locale . ENGLISH ))
448448 final URI sha256Uri = new URI (distributionUri. toString() + " .sha256" )
449449 final String sha256Sum = new String (sha256Uri. toURL(). bytes)
450- getPropertiesFile(). setText(" distributionSha256Sum=${ sha256Sum} \n " , ' UTF-8' )
450+ final String existingProperties = getPropertiesFile(). getText(' UTF-8' )
451+ getPropertiesFile(). setText(" ${ existingProperties} distributionSha256Sum=${ sha256Sum} \n " , ' UTF-8' )
451452 }
452453}
453454
You can’t perform that action at this time.
0 commit comments