Fix sha256sums containing mapping file

This commit is contained in:
crschnick 2024-07-19 17:17:03 +00:00
parent bc5ed101ed
commit 99b16a59e6

4
dist/build.gradle vendored
View file

@ -40,11 +40,11 @@ task createChecksums(type: Checksum) {
doLast {
def artifactChecksumsSha256Hex = new HashMap<String, String>()
for (final def file in outputDirectory.get().getAsFileTree().files) {
if (file.toString().endsWith('mapping.map') || file.toString().endsWith('.asc')) {
def name = file.name.lastIndexOf('.').with {it != -1 ? file.name[0..<it] : file.name}
if (name.endsWith('mapping.map') || name.endsWith('.asc')) {
continue
}
def name = file.name.lastIndexOf('.').with {it != -1 ? file.name[0..<it] : file.name}
artifactChecksumsSha256Hex.put(name, file.text.trim())
}