@@ -37,57 +37,57 @@ repositories {
3737dependencies {
3838 // Spigot API, https://www.spigotmc.org/
3939 compileOnly(" org.spigotmc:spigot-api:1.20.6-R0.1-SNAPSHOT" )
40+ // Adventure API
41+ implementation(libs.adventure.text.minimessage)
42+ implementation(libs.adventure.platform.bukkit)
43+ implementation(libs.adventure.text.serializer.gson)
4044 // Java Libraries
4145 compileOnly(" org.geysermc.floodgate:api:2.2.2-SNAPSHOT" )
4246 // Jalu Injector
43- implementation(" ch.jalu: injector:1.0 " )
47+ implementation(libs. injector)
4448 // String comparison library. Used for dynamic help system.
45- implementation(" net.ricecode: string-similarity:1.0.0 " )
49+ implementation(libs. string.similarity )
4650 // MaxMind GEO IP with our modifications to use GSON in replacement of the big Jackson dependency
4751 // GSON is already included and therefore it reduces the file size in comparison to the original version
48- implementation(" com .maxmind.db:maxmind-db-gson:2.0.3 " ) {
52+ implementation(libs .maxmind.db.gson ) {
4953 exclude(" com.google.code.gson" , " gson" )
5054 }
5155 // Library for tar archives
52- implementation(" javatar:javatar:2.5 " )
56+ implementation(libs.javatar )
5357 // Java Email Library
54- implementation(" org.apache. commons:commons-email:1.6-SNAPSHOT " )
58+ implementation(libs. commons.email )
5559 // Log4J Logger (required by the console filter)
56- compileOnly(" org.apache.logging. log4j:log4j-core:2.20.0 " ) // Log4J version bundled in 1.12.2
60+ compileOnly(libs. log4j.core ) // Log4J version bundled in 1.12.2
5761 // Libby
58- implementation(" com.alessiodp. libby:libby-bukkit:2.0.0-SNAPSHOT " )
62+ implementation(libs. libby.bukkit )
5963 // Database Connection Pool
60- implementation(" com.zaxxer:HikariCP:4.0.3 " /* Latest java 8 release */ ) {
64+ implementation(libs.hikaricp ) {
6165 exclude(" org.slf4j" , " slf4j-api" )
6266 }
6367 // HikariCP Logger
64- implementation(" org .slf4j:slf4j-simple:1.7.36 " ) // We can't update to 2.x as long as we use HikariCP for java 8
68+ implementation(libs .slf4j.simple ) // We can't update to 2.x as long as we use HikariCP for java 8
6569 // PBKDF2 implementation
66- implementation(" de.rtner:PBKDF2:1.1.4 " )
70+ implementation(libs.pbkdf2 )
6771 // MySQL connector, shaded into the legacy jar
68- implementation(" com .mysql:mysql- connector-j:8.4.0 " )
69- implementation(" org .mariadb.jdbc:mariadb- java-client:3.3.3 " )
72+ implementation(libs .mysql. connector.j )
73+ implementation(libs .mariadb.java.client )
7074 // Argon2 implementation
71- implementation(" de.mkammerer: argon2- jvm-nolibs:2.11 " )
75+ implementation(libs. argon2. jvm.nolibs )
7276 // TOTP client
73- implementation(" com.warrenstrange: googleauth:1.5.0 " )
77+ implementation(libs. googleauth)
7478 // Keep in sync with spigot 1.19
75- implementation(" com.google. guava:guava:33.2.1-jre " ) {
79+ implementation(libs. guava) {
7680 exclude(" org.checkerframework" , " checker-qual" )
7781 }
78- implementation(" com.google.code. gson:gson:2.10.1 " )
82+ implementation(libs. gson)
7983 // ConfigMe
80- implementation(" ch.jalu: configme:1.3.1 " ) {
84+ implementation(libs. configme) {
8185 exclude(" org.yaml" , " snakeyaml" )
8286 }
8387 // bStats metrics
8488 implementation(" org.bstats:bstats-bukkit:3.0.2" )
8589 // ProtocolLib
86- compileOnly(" com.comphenix.protocol:ProtocolLib:5.1.0" )
87- // Adventure API
88- implementation(" net.kyori:adventure-text-minimessage:4.17.0" )
89- implementation(" net.kyori:adventure-platform-bukkit:4.3.2" )
90- implementation(" net.kyori:adventure-text-serializer-gson:4.17.0" )
90+ compileOnly(" com.comphenix.protocol:ProtocolLib:5.3.0" )
9191 // LuckPerms plugin
9292 compileOnly(" net.luckperms:api:5.4" )
9393 // PermissionsEx plugin
@@ -105,22 +105,22 @@ dependencies {
105105 exclude(" io.papermc" , " paperlib" )
106106 }
107107 // BCrypt implementation
108- implementation(" at.favre.lib: bcrypt:0.10.2 " )
108+ implementation(libs. bcrypt)
109109 // PlaceholderAPI
110110 compileOnly(" me.clip:placeholderapi:2.11.6" )
111111 // XAuth, another authentication plugin, required by the database converter
112112 compileOnly(" de.luricos.bukkit:xAuth:2.6.1-SNAPSHOT" )
113- implementation(" ch.jalu: datasourcecolumns:0.1.1-SNAPSHOT " )
114- implementation(" org .postgresql:postgresql:42.7.3 " ) {
113+ implementation(libs. datasourcecolumns)
114+ implementation(libs .postgresql) {
115115 exclude(" org.checkerframework" , " checker-qual" )
116116 }
117117 // Required to mock the LuckPerms API
118- testImplementation(" org.checkerframework: checker-qual:3.48.0 " )
118+ testImplementation(libs. checker.qual )
119119 // Universal Scheduler
120- implementation(" com.github.Anon8281:UniversalScheduler:0.1.6 " )
120+ implementation(libs.universalscheduler )
121121 // JDBC drivers for datasource integration tests
122- testImplementation(" org.xerial: sqlite-jdbc:3.47.1.0 " )
123- compileOnly(" com.h2database:h2:2.2.224 " )
122+ testImplementation(libs. sqlite.jdbc )
123+ compileOnly(libs.h2 )
124124}
125125
126126tasks {
@@ -169,10 +169,7 @@ tasks {
169169 // bStats metrics class
170170 relocate(" org.bstats" , " fr.xephi.authme.libs.org.bstats" )
171171 relocate(" org.mariadb.jdbc" , " fr.xephi.authme.libs.org.mariadb.jdbc" )
172- relocate(
173- " com.github.Anon8281.universalScheduler" ,
174- " fr.xephi.authme.libs.com.github.Anon8281.universalScheduler"
175- )
172+ relocate(" com.github.Anon8281.universalScheduler" , " fr.xephi.authme.libs.com.github.Anon8281.universalScheduler" )
176173 relocate(" com.mysql" , " fr.xephi.authme.libs.com.mysql" )
177174 relocate(" com.google.protobuf" , " fr.xephi.authme.libs.com.google.protobuf" )
178175 relocate(" io.netty" , " fr.xephi.authme.libs.io.netty" )
0 commit comments