2021-01-14 19:14:57 +00:00
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
url = "https://jitpack.io"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-26 10:45:48 +00:00
|
|
|
loom {
|
2021-12-22 19:50:53 +00:00
|
|
|
accessWidenerPath = file("src/main/resources/simpleauth.accesswidener")
|
2021-01-26 10:45:48 +00:00
|
|
|
}
|
|
|
|
|
2021-01-14 19:14:57 +00:00
|
|
|
dependencies {
|
|
|
|
// We depend on fabric loader here to use the fabric @Environment annotations
|
|
|
|
// Do NOT use other classes from fabric loader
|
2021-06-23 13:55:25 +00:00
|
|
|
modImplementation "net.fabricmc:fabric-loader:${rootProject.loader_version}"
|
2021-01-14 19:14:57 +00:00
|
|
|
|
2021-12-22 19:50:53 +00:00
|
|
|
modImplementation ("dev.architectury:architectury:${rootProject.architectury_version}") {
|
2021-01-14 19:14:57 +00:00
|
|
|
exclude(module: "fabric-api")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Password hashing
|
|
|
|
// Argon2
|
|
|
|
implementation "de.mkammerer:argon2-jvm:${argon2_version}"
|
|
|
|
|
|
|
|
// BCrypt
|
|
|
|
implementation "at.favre.lib:bcrypt:${bcrypt_version}"
|
|
|
|
implementation "at.favre.lib:bytes:${bytes_version}"
|
|
|
|
|
|
|
|
// Storage
|
|
|
|
// LevelDB database
|
2021-01-26 08:28:25 +00:00
|
|
|
implementation 'org.iq80.leveldb:leveldb:0.12'
|
|
|
|
implementation 'org.iq80.leveldb:leveldb-api:0.12'
|
2021-01-14 19:14:57 +00:00
|
|
|
|
|
|
|
// MongoDB driver
|
|
|
|
implementation 'org.mongodb:mongodb-driver-sync:4.1.0'
|
|
|
|
}
|
|
|
|
|
2021-01-20 11:33:36 +00:00
|
|
|
architectury {
|
2021-12-22 19:50:53 +00:00
|
|
|
common()
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|