diff --git a/build.gradle.kts b/build.gradle.kts index d375a3d..990612c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -24,7 +24,7 @@ dependencies { implementation(libs.com.googlecode.json.simple) implementation(libs.bstats.bukkit) implementation(platform(libs.fawe.bom)) - implementation("net.buildtheearth:projection:1.0.3") + implementation(libs.net.buildtheearth.projection) compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Core") compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit") { isTransitive = false } @@ -54,6 +54,10 @@ tasks.shadowJar { relocationPrefix = "net.buildtheearth.buildteamtools.shaded" enableAutoRelocation = true + + // Prevents the plugin itself from being relocated by autorelocate + // This is needed because net.buildtheearth.projection shares the same package namespace + relocate("net.buildtheearth.buildteamtools", "net.buildtheearth.buildteamtools") } tasks.assemble { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 38300f2..ffceeaa 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -21,6 +21,7 @@ alpslib-utils = "1.4.2" # https://mvn.alps-bte.com/service/rest/repository/brows fawe-bom = "1.55" # Ref: https://github.com/IntellectualSites/bom bstats = "3.1.0" # https://central.sonatype.com/artifact/org.bstats/bstats-bukkit bluemap-api = "2.7.7" # Ref: https://github.com/BlueMap-Minecraft/BlueMapAPI +net-buildtheearth-projection = "1.+" # Ref: https://github.com/BuildTheEarth/projection [libraries] com-alpsbte-alpslib-alpslib-libpsterra = { module = "com.alpsbte.alpslib:alpslib-libpsterra", version.ref = "com-alpsbte-alpslib-alpslib-libpsterra" } @@ -39,6 +40,7 @@ alpslib-utils = { module = "com.alpsbte.alpslib:alpslib-utils", version.ref = "a fawe-bom = { module = "com.intellectualsites.bom:bom-newest", version.ref = "fawe-bom" } bstats-bukkit = { module = "org.bstats:bstats-bukkit", version.ref = "bstats" } bluemap-api = { module = "de.bluecolored:bluemap-api", version.ref = "bluemap-api" } +net-buildtheearth-projection = { module = "net.buildtheearth:projection", version.ref = "net-buildtheearth-projection"} [plugins] lombok = { id = "io.freefair.lombok", version.ref = "io-freefair-lombok" }