update libraries
parent
c43e771ef5
commit
c452b3ae8a
10
build.gradle
10
build.gradle
|
@ -33,16 +33,16 @@ dependencies {
|
||||||
implementation ('commons-io:commons-io:2.6')
|
implementation ('commons-io:commons-io:2.6')
|
||||||
implementation ('org.zeroturnaround:zt-zip:1.13')
|
implementation ('org.zeroturnaround:zt-zip:1.13')
|
||||||
implementation ('com.google.code.gson:gson:2.8.5')
|
implementation ('com.google.code.gson:gson:2.8.5')
|
||||||
implementation ('com.google.guava:guava:27.0.1-jre')
|
implementation ('com.google.guava:guava:27.1-jre')
|
||||||
implementation ('net.fabricmc:stitch:0.1.1.42') {
|
implementation ('net.fabricmc:stitch:0.1.2.47') {
|
||||||
exclude module: 'enigma'
|
exclude module: 'enigma'
|
||||||
}
|
}
|
||||||
implementation ('net.fabricmc:tiny-remapper:0.1.0.23') {
|
implementation ('net.fabricmc:tiny-remapper:0.1.0.29') {
|
||||||
transitive = false
|
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: 'launchwrapper'
|
||||||
exclude module: 'guava'
|
exclude module: 'guava'
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ public class Checksum {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
//noinspection deprecation
|
//noinspection deprecation
|
||||||
HashCode hash = Files.hash(file, Hashing.sha1());
|
HashCode hash = Files.asByteSource(file).hash(Hashing.sha1());
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
for (Byte hashBytes : hash.asBytes()) {
|
for (Byte hashBytes : hash.asBytes()) {
|
||||||
builder.append(Integer.toString((hashBytes & 0xFF) + 0x100, 16).substring(1));
|
builder.append(Integer.toString((hashBytes & 0xFF) + 0x100, 16).substring(1));
|
||||||
|
|
Loading…
Reference in New Issue