Skip to content

feat: update Kotlin version in build.gradle.kts and enable folia support in PaperPluginSurfExtension#279

Merged
ammodev merged 1 commit into
version/1.21.11from
chore/default-folia-support
Apr 3, 2026
Merged

feat: update Kotlin version in build.gradle.kts and enable folia support in PaperPluginSurfExtension#279
ammodev merged 1 commit into
version/1.21.11from
chore/default-folia-support

Conversation

@ammodev

@ammodev ammodev commented Apr 3, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 3, 2026 22:00
@ammodev ammodev merged commit a80263f into version/1.21.11 Apr 3, 2026
6 checks passed
@ammodev ammodev deleted the chore/default-folia-support branch April 3, 2026 22:00

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

This PR updates defaults/versions in the Gradle plugin and repo ignore rules, aiming to (per title) enable Folia support by default for Paper plugin description generation and bump the Gradle plugin’s published version.

Changes:

  • Default foliaSupported in PaperPluginSurfExtension switched from false to true.
  • surf-api-gradle-plugin version suffix bumped from -1.13.2 to -1.13.3.
  • .gitignore adjusted to ignore .kotlin directories in all subprojects (**/.kotlin/*).

Reviewed changes

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

File Description
surf-api-gradle-plugin/src/main/kotlin/dev/slne/surf/surfapi/gradle/platform/paper/plugin/PaperPluginSurfExtension.kt Changes default Folia support flag behavior for all consumers of the Gradle extension.
surf-api-gradle-plugin/build.gradle.kts Bumps the Gradle plugin version suffix.
.gitignore Expands Kotlin build cache ignore pattern to all modules.

objects.property<Action<NamedDomainObjectContainerScope<PaperPluginDescription.DependencyDefinition>>>()
internal val runServer = objects.property<Action<RunServer>>()
internal val foliaSupported = objects.property<Boolean>().convention(false)
internal val foliaSupported = objects.property<Boolean>().convention(true)

Copilot AI Apr 3, 2026

Copy link

Choose a reason for hiding this comment

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

Changing the default foliaSupported convention to true will mark all Paper plugins using this Gradle extension as Folia-supported unless they explicitly opt out. That risks incorrectly advertising Folia compatibility (and allowing load on Folia) for plugins that are not thread-safe. Suggest keeping the default as false and requiring explicit opt-in in consumer builds (or derive it only from an explicit flag like useCanvasMc).

Suggested change
internal val foliaSupported = objects.property<Boolean>().convention(true)
internal val foliaSupported = objects.property<Boolean>().convention(false)

Copilot uses AI. Check for mistakes.
Comment on lines 22 to 25
version = buildString {
append(mcVersion)
append("-1.13.2")
append("-1.13.3")
if (snapshot) append("-SNAPSHOT")

Copilot AI Apr 3, 2026

Copy link

Choose a reason for hiding this comment

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

PR title mentions updating the Kotlin version in build.gradle.kts, but this hunk only bumps the plugin version suffix (-1.13.2-1.13.3). If the intent is a Kotlin upgrade, the Kotlin version is defined via the version catalog (gradle/libs.versions.toml kotlinVersion) and/or plugin declarations, so either update the title/description or include the Kotlin version change in this PR.

Copilot uses AI. Check for mistakes.
@github-actions

github-actions Bot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

⚠️ API/ABI changes detected!

This PR contains changes that modified the public API. To update the reference ABI dumps:

./gradlew updateKotlinAbi
git add **/api/**
git commit -m "Update ABI reference"
git push

After updating, the CI will pass. Make sure the changes are backward compatible.

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