Skip to content

✨ feat(plugin): add support for surf-npc integration in PaperPluginSurf#342

Merged
twisti-dev merged 1 commit into
version/26.1from
feat/surf-npc-ding+
May 9, 2026
Merged

✨ feat(plugin): add support for surf-npc integration in PaperPluginSurf#342
twisti-dev merged 1 commit into
version/26.1from
feat/surf-npc-ding+

Conversation

@TheBjoRedCraft
Copy link
Copy Markdown
Member

  • update version to 2.0.5 in build.gradle.kts
  • introduce installSurfNpc property in PaperPluginSurfExtension
  • add withSurfNpc method to enable surf-npc integration
  • conditionally add surf-npc dependencies in PaperPluginSurfPlugin

- update version to 2.0.5 in build.gradle.kts
- introduce installSurfNpc property in PaperPluginSurfExtension
- add withSurfNpc method to enable surf-npc integration
- conditionally add surf-npc dependencies in PaperPluginSurfPlugin
@TheBjoRedCraft TheBjoRedCraft self-assigned this May 9, 2026
Copilot AI review requested due to automatic review settings May 9, 2026 21:28
@twisti-dev twisti-dev enabled auto-merge May 9, 2026 21:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an opt-in Surf NPC integration toggle to the Paper Gradle plugin (dev.slne.surf.api.gradle.paper-plugin), so downstream Paper plugin projects can easily compile against surf-npc-api and declare a required runtime dependency on the surf-npc-paper plugin.

Changes:

  • Bump surf-api-gradle-plugin version to 2.0.5.
  • Add withSurfNpc() to PaperPluginSurfExtension (backed by an internal installSurfNpc flag).
  • When enabled, automatically add surf-npc-api as a compileOnly dependency and register surf-npc-paper as a required server dependency in the generated Paper plugin.yml.

Reviewed changes

Copilot reviewed 3 out of 3 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/paper/plugin/PaperPluginSurfPlugin.kt Conditionally adds surf-npc-api to compileOnly and registers surf-npc-paper as a required server dependency.
surf-api-gradle-plugin/src/main/kotlin/dev/slne/surf/api/gradle/platform/paper/plugin/PaperPluginSurfExtension.kt Introduces the opt-in flag and exposes withSurfNpc() to enable integration from build scripts.
surf-api-gradle-plugin/build.gradle.kts Updates plugin version to 2.0.5.

@twisti-dev twisti-dev added this pull request to the merge queue May 9, 2026
@twisti-dev twisti-dev removed this pull request from the merge queue due to a manual request May 9, 2026
@twisti-dev twisti-dev added this pull request to the merge queue May 9, 2026
@twisti-dev twisti-dev removed this pull request from the merge queue due to a manual request May 9, 2026
@twisti-dev twisti-dev merged commit 3504bd7 into version/26.1 May 9, 2026
11 checks passed
@twisti-dev twisti-dev deleted the feat/surf-npc-ding+ branch May 9, 2026 21:38
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.

3 participants