From 20cc20883cf495b688ea193960040e0fefd77519 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Wed, 25 Apr 2018 14:57:26 -0700 Subject: [PATCH] fix concat --- .gradle-wrapper/gradle-wrapper.properties | 5 +++++ build.gradle | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gradle-wrapper/gradle-wrapper.properties b/.gradle-wrapper/gradle-wrapper.properties index 4f5702da8f926..fdbd3758709dc 100644 --- a/.gradle-wrapper/gradle-wrapper.properties +++ b/.gradle-wrapper/gradle-wrapper.properties @@ -1 +1,6 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists distributionSha256Sum=203f4537da8b8075e38c036a6d14cb71b1149de5bf0a8f6db32ac2833a1d1294 diff --git a/build.gradle b/build.gradle index 2b7e2739567c2..eb9afb354d319 100644 --- a/build.gradle +++ b/build.gradle @@ -440,14 +440,15 @@ task run(type: Run) { task wrapper(type: Wrapper) { distributionType = DistributionType.ALL - jarFile = "${project.projectDir}/.gradle-wrapper/gradle-wrapper.jar" + jarFile = file('.gradle-wrapper/gradle-wrapper.jar') doLast { final DistributionLocator locator = new DistributionLocator() final GradleVersion version = GradleVersion.version(gradleVersion) final URI distributionUri = locator.getDistributionFor(version, distributionType.name().toLowerCase(Locale.ENGLISH)) final URI sha256Uri = new URI(distributionUri.toString() + ".sha256") final String sha256Sum = new String(sha256Uri.toURL().bytes) - getPropertiesFile().setText("distributionSha256Sum=${sha256Sum}\n", 'UTF-8') + final String existingProperties = getPropertiesFile().getText('UTF-8') + getPropertiesFile().setText("${existingProperties}distributionSha256Sum=${sha256Sum}\n", 'UTF-8') } }