Skip to content

Commit

Permalink
Fix release (spotbugs#2616)
Browse files Browse the repository at this point in the history
  • Loading branch information
beatbrot authored Oct 9, 2023
1 parent cfcf9f2 commit 09d70e1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
}
}
}
Expand Down

0 comments on commit 09d70e1

Please sign in to comment.