Browse Source

Bonk! We don't want to shade Guava since Minecraft already has it

architectury
charlotte ✨ 1 month ago
parent
commit
1bd2df8a02
  1. 17
      forge/build.gradle

17
forge/build.gradle

@ -16,7 +16,6 @@ loom {
configurations {
common
shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this.
shadow
compileClasspath.extendsFrom common
runtimeClasspath.extendsFrom common
developmentForge.extendsFrom common
@ -31,25 +30,27 @@ dependencies {
// Password hashing
// Argon2
shadow "de.mkammerer:argon2-jvm:${argon2_version}"
shadowCommon "de.mkammerer:argon2-jvm:${argon2_version}"
// BCrypt
shadow "at.favre.lib:bcrypt:${bcrypt_version}"
shadow "at.favre.lib:bytes:${bytes_version}"
shadowCommon "at.favre.lib:bcrypt:${bcrypt_version}"
shadowCommon "at.favre.lib:bytes:${bytes_version}"
// Storage
// leveldb
shadow group: 'org.iq80.leveldb', name: 'leveldb', version: '0.12'
shadow group: 'org.iq80.leveldb', name: 'leveldb-api', version: '0.12'
shadowCommon(group: 'org.iq80.leveldb', name: 'leveldb', version: '0.12') {
exclude group: "com.google.guava"
}
shadowCommon group: 'org.iq80.leveldb', name: 'leveldb-api', version: '0.12'
// JNA lib
shadow 'net.java.dev.jna:jna:5.5.0'
shadowCommon 'net.java.dev.jna:jna:5.5.0'
}
shadowJar {
exclude "fabric.mod.json"
configurations = [project.configurations.shadowCommon, project.configurations.shadow]
configurations = [project.configurations.shadowCommon]
classifier "dev-shadow"
}

Loading…
Cancel
Save