Skip to content

Commit

Permalink
Fix build failure on windows (#1498)
Browse files Browse the repository at this point in the history
Fixes #1497

Signed-off-by: Snjezana Peco <[email protected]>
  • Loading branch information
snjeza authored and fbricon committed Jul 6, 2020
1 parent e59ad79 commit 0315623
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions org.eclipse.jdt.ls.core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@
def versionUrl = new URL("https://services.gradle.org/versions/all")
def versionStr = versionUrl.text;
def versionsFile = new File("${basedir}/gradle/checksums/versions.json")
def versionsFile = new File(project.basedir.absolutePath, "gradle/checksums/versions.json")
versionsFile.parentFile.mkdirs() //just in case
versionsFile.write(versionStr)
println "Wrote to ${versionsFile}"
def versions = new JsonSlurper().parseText(versionStr);
class Checksum { String wrapperChecksumUrl; String sha256 }
Expand All @@ -70,8 +71,9 @@
}
}
def json = JsonOutput.toJson(checksums)
def checksumsFile = new File("${basedir}/gradle/checksums/checksums.json")
def checksumsFile = new File(project.basedir.absolutePath, "gradle/checksums/checksums.json")
checksumsFile.write(JsonOutput.prettyPrint(json))
println "Wrote to ${checksumsFile}"
</source>
</configuration>
</execution>
Expand Down

0 comments on commit 0315623

Please sign in to comment.