Skip to content

Commit

Permalink
fix concat
Browse files Browse the repository at this point in the history
  • Loading branch information
rjernst committed Apr 25, 2018
1 parent 460676c commit 20cc208
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .gradle-wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}

Expand Down

0 comments on commit 20cc208

Please sign in to comment.