Skip to content

chore: upgrade to paper-api 26.1.2 with Java 25 toolchain#51

Merged
KevinTCoughlin merged 1 commit into
mainfrom
fix/paper-api-26-java25
May 8, 2026
Merged

chore: upgrade to paper-api 26.1.2 with Java 25 toolchain#51
KevinTCoughlin merged 1 commit into
mainfrom
fix/paper-api-26-java25

Conversation

@KevinTCoughlin
Copy link
Copy Markdown
Owner

Supersedes #49 (Dependabot's paper-api bump) which failed CI because the new Paper API requires Java 25.

Changes

  • Bump paper-api from 1.21.11-R0.1-SNAPSHOT to 26.1.2.build.60-stable
  • Upgrade Java toolchain from 21 → 25 (required by paper-api 26.x)
  • Update minecraftVersion to 26.1.2 for plugin.yml api-version (Paper's new CalVer scheme)
  • Update ci.yml and release.yml to use JDK 25

Root cause

Paper 26.x moved to a new versioning scheme (CalVer) and now requires JVM 25+. The Dependabot PR only bumped the version in libs.versions.toml but didn't update the Java toolchain configuration.

Closes #49

- Bump paper-api from 1.21.11-R0.1-SNAPSHOT to 26.1.2.build.60-stable
- Upgrade Java toolchain from 21 to 25 (required by paper-api 26.x)
- Update minecraftVersion to 26.1.2 for plugin.yml api-version
- Update ci.yml and release.yml to use JDK 25

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 8, 2026 05:30
@KevinTCoughlin KevinTCoughlin merged commit 25158ec into main May 8, 2026
6 of 7 checks passed
Copy link
Copy Markdown

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

Upgrades the project’s Paper API dependency to the new 26.x CalVer line and aligns the build/tooling baseline to Java 25, updating CI/release workflows accordingly so the build continues to work under the new Paper requirements.

Changes:

  • Bump io.papermc.paper:paper-api to 26.1.2.build.60-stable.
  • Upgrade Gradle Kotlin/JVM toolchain from Java 21 to Java 25.
  • Update CI and release workflows to build with JDK 25, and adjust the plugin.yml api-version input via gradle.properties.

Reviewed changes

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

Show a summary per file
File Description
gradle/libs.versions.toml Updates the Paper API version used across plugins via the version catalog.
gradle.properties Updates the minecraftVersion property used for resource expansion (e.g., plugin.yml api-version).
buildSrc/src/main/kotlin/paper-plugin.gradle.kts Moves the Kotlin/JVM toolchain to Java 25 to satisfy Paper 26.x requirements.
.github/workflows/ci.yml Updates CI to run Gradle builds/tests on JDK 25.
.github/workflows/release.yml Updates release workflow to build artifacts on JDK 25.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread gradle.properties
@@ -3,7 +3,7 @@ group=com.example
version=1.0.0

# Minecraft version (for reference)
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(21))
languageVersion.set(JavaLanguageVersion.of(25))
Comment on lines +28 to 33
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: '21'
java-version: '25'
distribution: 'temurin' # Eclipse Foundation OpenJDK
cache: 'gradle'
@KevinTCoughlin KevinTCoughlin deleted the fix/paper-api-26-java25 branch May 9, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants