EasyAuth/forge/build.gradle

70 lines
1.5 KiB
Groovy
Raw Normal View History

2021-01-14 19:14:57 +00:00
plugins {
id "com.github.johnrengelman.shadow" version "5.0.0"
}
configurations {
shadow
}
architectury {
platformSetupLoomIde()
2021-03-03 13:58:46 +00:00
forge()
2021-01-14 19:14:57 +00:00
}
loom {
// Enable this for yarn to work
//useFabricMixin = true
2021-01-19 12:21:38 +00:00
mixinConfigs = ["mixins.simpleauth.json"]
2021-01-26 08:28:25 +00:00
useFabricMixin = true
2021-01-14 19:14:57 +00:00
}
dependencies {
2021-01-20 11:33:36 +00:00
forge("net.minecraftforge:forge:${rootProject.minecraft_version}-${rootProject.forge_version}")
2021-01-14 19:14:57 +00:00
2021-03-03 13:58:46 +00:00
implementation(project(path: ":common")) {
2021-01-14 19:14:57 +00:00
transitive = false
}
2021-03-03 13:58:46 +00:00
developmentForge(project(path: ":common")) {
2021-01-14 19:14:57 +00:00
transitive = false
}
2021-01-20 11:33:36 +00:00
shadow(project(path: ":common", configuration: "transformProductionForge")) {
2021-01-14 19:14:57 +00:00
transitive = false
}
2021-01-26 10:45:48 +00:00
// Password hashing
// Argon2
2021-02-08 14:25:43 +00:00
shadow "de.mkammerer:argon2-jvm:${argon2_version}"
2021-01-26 10:45:48 +00:00
// BCrypt
2021-02-08 14:25:43 +00:00
shadow "at.favre.lib:bcrypt:${bcrypt_version}"
shadow "at.favre.lib:bytes:${bytes_version}"
2021-01-26 10:45:48 +00:00
// Storage
2021-02-08 14:25:43 +00:00
// leveldb
shadow group: 'org.iq80.leveldb', name: 'leveldb', version: '0.12'
shadow group: 'org.iq80.leveldb', name: 'leveldb-api', version: '0.12'
2021-01-26 10:45:48 +00:00
// JNA lib
2021-02-08 14:25:43 +00:00
shadow 'net.java.dev.jna:jna:5.5.0'
2021-01-14 19:14:57 +00:00
}
shadowJar {
exclude "fabric.mod.json"
configurations = [project.configurations.shadow]
classifier "shadow"
}
remapJar {
dependsOn(shadowJar)
input.set(shadowJar.archivePath)
archiveClassifier = "forge"
}
jar {
manifest {
attributes([
2021-01-19 12:21:38 +00:00
"MixinConfigs": "mixins.simpleauth.json",
2021-01-14 19:14:57 +00:00
])
}
}