diff --git a/build.gradle b/build.gradle index 02f6e26b..26f409d8 100644 --- a/build.gradle +++ b/build.gradle @@ -33,16 +33,16 @@ dependencies { implementation ('commons-io:commons-io:2.6') implementation ('org.zeroturnaround:zt-zip:1.13') implementation ('com.google.code.gson:gson:2.8.5') - implementation ('com.google.guava:guava:27.0.1-jre') - implementation ('net.fabricmc:stitch:0.1.1.42') { + implementation ('com.google.guava:guava:27.1-jre') + implementation ('net.fabricmc:stitch:0.1.2.47') { exclude module: 'enigma' } - implementation ('net.fabricmc:tiny-remapper:0.1.0.23') { + implementation ('net.fabricmc:tiny-remapper:0.1.0.29') { transitive = false } - implementation ('org.jetbrains:intellij-fernflower:1.0.0.5') + implementation ('org.jetbrains:intellij-fernflower:1.0.0.7') - implementation ('net.fabricmc:sponge-mixin:0.7.11.16') { + implementation ('net.fabricmc:sponge-mixin:0.7.11.17') { exclude module: 'launchwrapper' exclude module: 'guava' } diff --git a/src/main/java/net/fabricmc/loom/util/Checksum.java b/src/main/java/net/fabricmc/loom/util/Checksum.java index 34a9b479..0de2ef5f 100644 --- a/src/main/java/net/fabricmc/loom/util/Checksum.java +++ b/src/main/java/net/fabricmc/loom/util/Checksum.java @@ -38,7 +38,7 @@ public class Checksum { } try { //noinspection deprecation - HashCode hash = Files.hash(file, Hashing.sha1()); + HashCode hash = Files.asByteSource(file).hash(Hashing.sha1()); StringBuilder builder = new StringBuilder(); for (Byte hashBytes : hash.asBytes()) { builder.append(Integer.toString((hashBytes & 0xFF) + 0x100, 16).substring(1));