EasyAuth/fabric/build.gradle

88 lines
2.0 KiB
Groovy
Raw Permalink Normal View History

2021-01-14 19:12:51 +00:00
plugins {
2022-04-08 14:08:26 +00:00
id "com.github.johnrengelman.shadow" version "7.1.2"
2021-01-14 19:12:51 +00:00
}
repositories {
// Carpet mod
maven {
url 'https://jitpack.io'
}
maven {
url 'https://masa.dy.fi/maven'
}
}
configurations {
shadow
}
architectury {
platformSetupLoomIde()
2021-03-03 13:58:46 +00:00
fabric()
2021-01-14 19:12:51 +00:00
}
dependencies {
2021-01-19 19:35:44 +00:00
modImplementation("net.fabricmc:fabric-loader:${rootProject.loader_version}")
modImplementation("net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_version}")
2021-01-14 19:12:51 +00:00
2021-03-03 13:58:46 +00:00
implementation(project(path: ":common")) {
2021-01-14 19:12:51 +00:00
transitive = false
}
2021-03-03 13:58:46 +00:00
developmentFabric(project(path: ":common")) {
2021-01-14 19:12:51 +00:00
transitive = false
}
2021-01-20 11:33:36 +00:00
shadow(project(path: ":common", configuration: "transformProductionFabric")) {
2021-01-14 19:12:51 +00:00
transitive = false
}
2021-01-19 12:21:38 +00:00
2021-01-14 19:12:51 +00:00
// carpetMod
// from masa's maven
//modImplementation "carpet:fabric-carpet:${project.minecraft_version}-${project.carpet_core_version}"
// jitpack for quicker updating
2022-04-08 14:08:26 +00:00
modImplementation "carpet:fabric-carpet:1.18.2-${project.carpet_core_version}"
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:12:51 +00:00
}
processResources {
filesMatching("fabric.mod.json") {
expand "version": project.version
}
inputs.property "version", project.version
}
shadowJar {
configurations = [project.configurations.shadow]
classifier "shadow"
}
remapJar {
dependsOn(shadowJar)
input.set(shadowJar.archivePath)
2021-01-19 19:35:44 +00:00
classifier "fabric"
2021-01-14 19:12:51 +00:00
}