From 045504ecf79938a589be0529bf49622ebca0c4c9 Mon Sep 17 00:00:00 2001 From: Brady Date: Fri, 12 Oct 2018 21:38:05 -0500 Subject: [PATCH] No differences. 100% NONE --- .../main/java/baritone/gradle/task/CreateDistTask.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/buildSrc/src/main/java/baritone/gradle/task/CreateDistTask.java b/buildSrc/src/main/java/baritone/gradle/task/CreateDistTask.java index 12900eb7..f0d3e547 100644 --- a/buildSrc/src/main/java/baritone/gradle/task/CreateDistTask.java +++ b/buildSrc/src/main/java/baritone/gradle/task/CreateDistTask.java @@ -43,9 +43,9 @@ public class CreateDistTask extends BaritoneGradleTask { super.verifyArtifacts(); // Define the distribution file paths - Path unoptimized = getRelativeFile("dist/" + formatVersion(ARTIFACT_UNOPTIMIZED)); Path api = getRelativeFile("dist/" + formatVersion(ARTIFACT_API)); Path standalone = getRelativeFile("dist/" + formatVersion(ARTIFACT_STANDALONE)); + Path unoptimized = getRelativeFile("dist/" + formatVersion(ARTIFACT_UNOPTIMIZED)); // NIO will not automatically create directories Path dir = getRelativeFile("dist/"); @@ -54,18 +54,15 @@ public class CreateDistTask extends BaritoneGradleTask { } // Copy build jars to dist/ - Files.copy(this.artifactUnoptimizedPath, unoptimized, REPLACE_EXISTING); Files.copy(this.artifactApiPath, api, REPLACE_EXISTING); Files.copy(this.artifactStandalonePath, standalone, REPLACE_EXISTING); + Files.copy(this.artifactUnoptimizedPath, unoptimized, REPLACE_EXISTING); // Calculate all checksums and format them like "shasum" - List shasum = Stream.of(unoptimized, api, standalone) + List shasum = Stream.of(api, standalone, unoptimized) .map(path -> sha1(path) + " " + path.getFileName().toString()) .collect(Collectors.toList()); - System.out.println("$ > shasum im cool haha look at me"); - shasum.forEach(System.out::println); - // Write the checksums to a file Files.write(getRelativeFile("dist/checksums.txt"), shasum); }