From 2222f29bf07dda2162babe9da071b2599b58b7e6 Mon Sep 17 00:00:00 2001 From: Kyan Van den Eynde <66461508+kyanvde@users.noreply.github.com> Date: Thu, 30 Apr 2026 14:47:05 +0200 Subject: [PATCH 1/5] fix(src): Change main in plugin.yml because it gets autorelocated now. --- src/main/resources/plugin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 5c91d01..4ca8a4b 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: BuildTeamTools -main: net.buildtheearth.buildteamtools.BuildTeamTools +main: net.buildtheearth.buildteamtools.shaded.net.buildtheearth.buildteamtools.BuildTeamTools api-version: 1.13 version: ${version} description: ${description} From dc7b06ab29b1c0f64ac51dc79ae6e901ac0bc392 Mon Sep 17 00:00:00 2001 From: Kyan Van den Eynde <66461508+kyanvde@users.noreply.github.com> Date: Thu, 30 Apr 2026 14:53:32 +0200 Subject: [PATCH 2/5] Update src/main/resources/plugin.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/main/resources/plugin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 4ca8a4b..5c91d01 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: BuildTeamTools -main: net.buildtheearth.buildteamtools.shaded.net.buildtheearth.buildteamtools.BuildTeamTools +main: net.buildtheearth.buildteamtools.BuildTeamTools api-version: 1.13 version: ${version} description: ${description} From 0fd2fafc9e4bc36725305bbd9b5fcceafbf4691a Mon Sep 17 00:00:00 2001 From: Kyan Van den Eynde <66461508+kyanvde@users.noreply.github.com> Date: Thu, 30 Apr 2026 17:01:33 +0200 Subject: [PATCH 3/5] fix(src): Prevent plugin itself from being relocated. --- build.gradle.kts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index d375a3d..8b4eefb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -54,6 +54,8 @@ tasks.shadowJar { relocationPrefix = "net.buildtheearth.buildteamtools.shaded" enableAutoRelocation = true + + relocate("net.buildtheearth.buildteamtools", "net.buildtheearth.buildteamtools") } tasks.assemble { From 138106f4c2d6ef48c5584c337cb07dba4183d605 Mon Sep 17 00:00:00 2001 From: Kyan Van den Eynde <66461508+kyanvde@users.noreply.github.com> Date: Thu, 30 Apr 2026 17:46:40 +0200 Subject: [PATCH 4/5] fix(src): Change version of net.buildtheearth.projection dependency --- build.gradle.kts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 8b4eefb..052a410 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("net.buildtheearth:projection:1.+") compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Core") compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit") { isTransitive = false } @@ -55,6 +55,7 @@ tasks.shadowJar { relocationPrefix = "net.buildtheearth.buildteamtools.shaded" enableAutoRelocation = true + // Prevents the plugin itself from being relocated by autorelocate relocate("net.buildtheearth.buildteamtools", "net.buildtheearth.buildteamtools") } From 1dacf99f4c79a1bc2ce8f84a849cd916b8ac2c29 Mon Sep 17 00:00:00 2001 From: Kyan Van den Eynde <66461508+kyanvde@users.noreply.github.com> Date: Thu, 30 Apr 2026 18:47:05 +0200 Subject: [PATCH 5/5] fix(src): Extract dependency into libs.versions.toml --- build.gradle.kts | 3 ++- gradle/libs.versions.toml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 052a410..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.+") + implementation(libs.net.buildtheearth.projection) compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Core") compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit") { isTransitive = false } @@ -56,6 +56,7 @@ tasks.shadowJar { 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") } 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" }