Skip to content

✨ feat(minestom): add Minestom relocations plugin and update version … - #404

Merged
twisti-dev merged 2 commits into
version/26.2from
feat/minestom-relocations
Aug 10, 2026
Merged

✨ feat(minestom): add Minestom relocations plugin and update version …#404
twisti-dev merged 2 commits into
version/26.2from
feat/minestom-relocations

Conversation

@twisti-dev

Copy link
Copy Markdown
Contributor

…to 2.1.2

  • introduce MinestomRelocationsPlugin to handle runtime relocations for Shadow JARs
  • update version to 2.1.2 in build.gradle.kts

…to 2.1.2

- introduce MinestomRelocationsPlugin to handle runtime relocations for Shadow JARs
- update version to 2.1.2 in build.gradle.kts
Copilot AI lite review requested due to automatic review settings August 10, 2026 20:12
@twisti-dev
twisti-dev merged commit 2808c2f into version/26.2 Aug 10, 2026
5 of 7 checks passed
@twisti-dev
twisti-dev deleted the feat/minestom-relocations branch August 10, 2026 20:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a dedicated Gradle plugin to apply Surf Minestom Shadow relocations for “assembler” projects (that build an executable uberjar from multiple Surf Minestom plugins), and bumps the Gradle plugin module version to 2.1.2.

Changes:

  • Introduce MinestomRelocationsPlugin to apply the same relocation set as the Minestom Surf plugin, without requiring the full Surf/Kotlin project setup.
  • Register a new Gradle plugin id: dev.slne.surf.api.gradle.minestom-relocations.
  • Bump surf-api-gradle-plugin version from 2.1.1 to 2.1.2.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
surf-api-gradle-plugin/src/main/kotlin/dev/slne/surf/api/gradle/platform/minestom/MinestomRelocationsPlugin.kt New plugin to apply Minestom-targeted Shadow relocations for runtime/assembler uberjars.
surf-api-gradle-plugin/build.gradle.kts Version bump to 2.1.2 and plugin registration for minestom-relocations.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +16 to +19
pluginManager.withPlugin("com.gradleup.shadow") {
tasks.withType<ShadowJar>().configureEach {
val prefix = Constants.RELOCATION_PREFIX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants