EasyAuth/forge/build.gradle

81 lines
2.1 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()
}
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
minecraft("com.mojang:minecraft:${rootProject.minecraft_version}")
2021-01-14 19:14:57 +00:00
mappings("net.fabricmc:yarn:${rootProject.yarn_mappings}:v2")
2021-01-20 11:33:36 +00:00
forge("net.minecraftforge:forge:${rootProject.minecraft_version}-${rootProject.forge_version}")
2021-01-19 12:21:38 +00:00
modCompile("me.shedaniel:architectury:${rootProject.architectury_version}:forge")
2021-01-14 19:14:57 +00:00
compileOnly(project(path: ":common")) {
transitive = false
}
2021-01-20 11:33:36 +00:00
runtimeOnly(project(path: ":common", configuration: "transformDevelopmentForge")) {
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
implementation "de.mkammerer:argon2-jvm:${argon2_version}"
include "de.mkammerer:argon2-jvm:${argon2_version}"
// BCrypt
implementation "at.favre.lib:bcrypt:${bcrypt_version}"
implementation "at.favre.lib:bytes:${bytes_version}"
include "at.favre.lib:bcrypt:${bcrypt_version}"
include "at.favre.lib:bytes:${bytes_version}"
// Storage
// LevelDB database
implementation 'org.iq80.leveldb:leveldb:0.12'
implementation 'org.iq80.leveldb:leveldb-api:0.12'
include 'org.iq80.leveldb:leveldb:0.12'
include 'org.iq80.leveldb:leveldb-api:0.12'
// MongoDB driver
implementation 'org.mongodb:mongodb-driver-sync:4.1.0'
include 'org.mongodb:mongodb-driver-sync:4.1.0'
// JNA lib
include '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
])
}
}