update libraries

This commit is contained in:
Adrian Siekierka 2019-04-07 13:33:48 +02:00
parent c43e771ef5
commit c452b3ae8a
2 changed files with 6 additions and 6 deletions

View file

@ -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'
}

View file

@ -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));