mirror of
https://github.com/apache/lucene.git
synced 2025-02-23 10:51:29 +00:00
LUCENE-10152 Fix sha512 file syntax (#356)
This commit is contained in:
parent
feac4cd09e
commit
b20ffa5b2b
@ -22,7 +22,8 @@ allprojects {
|
||||
def checksum = {
|
||||
outputs.files.each { File file ->
|
||||
String sha512 = new DigestUtils(DigestUtils.sha512Digest).digestAsHex(file).trim()
|
||||
new File(file.parent, file.name + ".sha512").write(sha512 + " " + file.name, "UTF-8")
|
||||
// The asterisk signals a binary file, see https://www.gnu.org/software/coreutils/manual/coreutils.html#md5sum-invocation
|
||||
new File(file.parent, file.name + ".sha512").write(sha512 + " *" + file.name, "UTF-8")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -191,7 +191,8 @@ task assembleSourceDist() {
|
||||
// TODO: This is copied from distribution.gradle - reuse?
|
||||
def checksum = { file ->
|
||||
String sha512 = new DigestUtils(DigestUtils.sha512Digest).digestAsHex(file).trim()
|
||||
new File(file.parent, file.name + ".sha512").write(sha512 + " " + file.name, "UTF-8")
|
||||
// The asterisk signals a binary file, see https://www.gnu.org/software/coreutils/manual/coreutils.html#md5sum-invocation
|
||||
new File(file.parent, file.name + ".sha512").write(sha512 + " *" + file.name, "UTF-8")
|
||||
}
|
||||
|
||||
doFirst {
|
||||
|
Loading…
x
Reference in New Issue
Block a user