From b13b86b67a3abdbdbc9b348a6dbb94a0b1286610 Mon Sep 17 00:00:00 2001 From: Babbaj Date: Wed, 25 Mar 2020 20:34:54 -0400 Subject: [PATCH] get the hash of all jars in the dist directory --- .../src/main/java/baritone/gradle/task/CreateDistTask.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/buildSrc/src/main/java/baritone/gradle/task/CreateDistTask.java b/buildSrc/src/main/java/baritone/gradle/task/CreateDistTask.java index 9b7861ef2..6530830e0 100644 --- a/buildSrc/src/main/java/baritone/gradle/task/CreateDistTask.java +++ b/buildSrc/src/main/java/baritone/gradle/task/CreateDistTask.java @@ -59,9 +59,8 @@ public class CreateDistTask extends BaritoneGradleTask { Files.copy(this.artifactUnoptimizedPath, unoptimized, REPLACE_EXISTING); // Calculate all checksums and format them like "shasum" - // TODO: get the hash for both forge and non forge jars - List shasum = Stream.of(api, standalone, unoptimized) - .filter(Files::exists) + List shasum = Files.walk(getRelativeFile("dist"), 1) + .filter(p -> p.toString().endsWith(".jar")) .map(path -> sha1(path) + " " + path.getFileName().toString()) .collect(Collectors.toList());