EasyAuth/forge/build.gradle

80 lines
1.9 KiB
Groovy
Raw Normal View History

2021-01-14 19:14:57 +00:00
plugins {
2021-12-22 19:50:53 +00:00
id "com.github.johnrengelman.shadow" version "7.1.0"
2021-01-14 19:14:57 +00:00
}
architectury {
platformSetupLoomIde()
2021-03-03 13:58:46 +00:00
forge()
2021-01-14 19:14:57 +00:00
}
loom {
2021-12-22 19:50:53 +00:00
forge {
mixinConfig "mixins.simpleauth.json"
}
}
configurations {
common
shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this.
compileClasspath.extendsFrom common
runtimeClasspath.extendsFrom common
developmentForge.extendsFrom common
2021-01-14 19:14:57 +00:00
}
dependencies {
2021-12-22 19:50:53 +00:00
forge "net.minecraftforge:forge:${rootProject.minecraft_version}-${rootProject.forge_version}"
modApi "dev.architectury:architectury-forge:${rootProject.architectury_version}"
2021-01-14 19:14:57 +00:00
2021-12-22 19:50:53 +00:00
common(project(path: ":common", configuration: "namedElements")) { transitive = false }
shadowCommon(project(path: ":common", configuration: "transformProductionForge")) { 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"
2021-12-22 19:50:53 +00:00
configurations = [project.configurations.shadowCommon]
classifier "dev-shadow"
2021-01-14 19:14:57 +00:00
}
remapJar {
2021-12-22 19:50:53 +00:00
input.set shadowJar.archiveFile
dependsOn shadowJar
2021-01-14 19:14:57 +00:00
archiveClassifier = "forge"
}
jar {
2021-12-22 19:50:53 +00:00
classifier "dev"
2021-01-14 19:14:57 +00:00
manifest {
attributes([
2021-01-19 12:21:38 +00:00
"MixinConfigs": "mixins.simpleauth.json",
2021-01-14 19:14:57 +00:00
])
}
2021-12-22 19:50:53 +00:00
}
sourcesJar {
def commonSources = project(":common").sourcesJar
dependsOn commonSources
from commonSources.archiveFile.map { zipTree(it) }
}
components.java {
withVariantsFromConfiguration(project.configurations.shadowRuntimeElements) {
skip()
}
2021-01-14 19:14:57 +00:00
}