Skip to content

Commit 7283f9e

Browse files
committed
feat: add net.kyori.adventure.nbt relocation support and bump version to 1.6.2
- Added `net.kyori.adventure.nbt` relocation across multiple modules (`gradle-plugin`, `bukkit`, `velocity`, `standalone`). - Updated `CoreSurfPlugin` with relocation logic. - Bumped plugin version to 1.6.2.
1 parent d289485 commit 7283f9e

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

surf-api-bukkit/surf-api-bukkit-server/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ tasks {
104104
shadowJar {
105105
val relocationPrefix: String by project
106106
relocate("me.devnatan.inventoryframework", "$relocationPrefix.devnatan.inventoryframework")
107+
relocate("net.kyori.adventure.nbt", "$relocationPrefix.kyori.nbt")
107108
}
108109
}
109110

surf-api-gradle-plugin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ plugins {
2020
group = groupId
2121
version = buildString {
2222
append(mcVersion)
23-
append("-1.6.1")
23+
append("-1.6.2")
2424
if (snapshot) append("-SNAPSHOT")
2525
}
2626

surf-api-gradle-plugin/src/main/kotlin/dev/slne/surf/surfapi/gradle/platform/core/CoreSurfPlugin.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ internal abstract class AbstractCoreSurfPlugin<E : CoreSurfExtension>(
1111
init {
1212
"com.mojang.serialization" relocatesTo "mojang.serialization"
1313
"com.mojang.datafixers" relocatesTo "mojang.datafixers"
14+
"net.kyori.adventure.nbt" relocatesTo "kyori.nbt"
1415
}
1516
}
1617

surf-api-standalone/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,12 @@ dependencies {
3131
runtimeOnly(libs.flogger.slf4j.backend)
3232
}
3333

34+
tasks {
35+
shadowJar {
36+
val relocationPrefix: String by project
37+
relocate("net.kyori.adventure.nbt", "$relocationPrefix.kyori.nbt")
38+
}
39+
}
40+
3441
private fun <T : ModuleDependency> T.exclude(provider: Provider<MinimalExternalModuleDependency>) =
3542
provider.get().module.apply { exclude(group, name) }

surf-api-velocity/surf-api-velocity-server/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ tasks {
2323
shadowJar {
2424
val relocationPrefix: String by project
2525
relocate("it.unimi.dsi.fastutil", "$relocationPrefix.fastutil")
26+
relocate("net.kyori.adventure.nbt", "$relocationPrefix.kyori.nbt")
2627
}
2728
}
2829

0 commit comments

Comments
 (0)