Skip to content

chore: bump version to 2.0.4 and update SURF_API_VERSION format#299

Merged
ammodev merged 1 commit intoversion/26.1from
fix/fix-correct-surf-api-version
Apr 5, 2026
Merged

chore: bump version to 2.0.4 and update SURF_API_VERSION format#299
ammodev merged 1 commit intoversion/26.1from
fix/fix-correct-surf-api-version

Conversation

@ammodev
Copy link
Copy Markdown
Contributor

@ammodev ammodev commented Apr 5, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 5, 2026 15:43
@ammodev ammodev merged commit 00a3de9 into version/26.1 Apr 5, 2026
6 checks passed
@ammodev ammodev deleted the fix/fix-correct-surf-api-version branch April 5, 2026 15:43
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

Bumps the Gradle plugin version and adjusts how the plugin resolves Surf API artifacts/versions, including updating the test-server plugin download to the Paper server artifact.

Changes:

  • Bump surf-api-gradle-plugin version from 2.0.3 to 2.0.4.
  • Update RunServer.withSurfApiBukkit() to download the surf-api-paper-server release artifact.
  • Change generated Constants.SURF_API_VERSION value used for dependency coordinates.

Reviewed changes

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

File Description
surf-api-gradle-plugin/src/main/kotlin/dev/slne/surf/api/gradle/util/run-server-extensions.kt Switches GitHub download artifact name to surf-api-paper-server-...-all.jar for runServer setup.
surf-api-gradle-plugin/build.gradle.kts Bumps plugin version and modifies generated constants, including SURF_API_VERSION.

Comment on lines 139 to 142
| const val JAVA_VERSION = $javaVersion
| const val MINECRAFT_VERSION = "$mcVersion"
| const val SURF_API_VERSION = "$mcVersion+"
| const val SURF_API_VERSION = "+"
|
Copy link

Copilot AI Apr 5, 2026

Choose a reason for hiding this comment

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

SURF_API_VERSION is now set to just "+", which makes SurfApiPlatform resolve dependencies like dev.slne.surf.api:surf-api-core:+. This is non-reproducible and can pull an incompatible major/Minecraft-targeted version unexpectedly. Consider generating a constrained dynamic version (e.g., include the target Minecraft/version prefix), or derive an explicit version from a dedicated Gradle property (or the plugin/root version) instead of plain +.

Copilot uses AI. Check for mistakes.
Comment on lines 21 to 26
github(
"SLNE-Development",
"surf-api",
"v${Constants.SURF_API_FULL_VERSION}",
"surf-api-bukkit-server-${Constants.SURF_API_FULL_VERSION}-all.jar"
"surf-api-paper-server-${Constants.SURF_API_FULL_VERSION}-all.jar"
)
Copy link

Copilot AI Apr 5, 2026

Choose a reason for hiding this comment

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

This helper is still named/documented as adding the “Bukkit server”, but it now downloads the surf-api-paper-server-... artifact. To avoid confusion (and potential misconfiguration by consumers), either rename the extension (keeping a deprecated alias for backward compatibility) and/or update the KDoc to reflect Paper.

Copilot uses AI. Check for mistakes.
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