From 09d70e11c95cc3856b0c119150e9ee76c124186a Mon Sep 17 00:00:00 2001 From: Christoph Loy Date: Tue, 10 Oct 2023 00:27:24 +0200 Subject: [PATCH] Fix release (#2616) --- build.gradle | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index e243cbdf1d2..aa2aba66334 100644 --- a/build.gradle +++ b/build.gradle @@ -110,8 +110,9 @@ createReleaseBody.configure { dependsOn createChecksums doLast { - outputFile.get().asFile.delete() - outputFile << """SpotBugs ${project.version} + File outputAsFile = outputFile.get().asFile + outputAsFile.delete() + outputAsFile << """SpotBugs ${project.version} ### CHANGELOG - https://github.com/spotbugs/spotbugs/blob/${project.version}/CHANGELOG.md @@ -127,7 +128,7 @@ createReleaseBody.configure { }.forEach { def name = it.name.replace(".sha256", "") def hash = it as String[] - outputFile << "| ${ name } | ${hash[0]} |\n" + outputFile.get().asFile << "| ${ name } | ${hash[0]} |\n" } } }