Skip to content

Bump các thư viện, Java 17 và paper-api 1.21.11 - #84

Open
minhh2792 wants to merge 3 commits into
masterfrom
bump-libs
Open

Bump các thư viện, Java 17 và paper-api 1.21.11#84
minhh2792 wants to merge 3 commits into
masterfrom
bump-libs

Conversation

@minhh2792

@minhh2792 minhh2792 commented Aug 3, 2026

Copy link
Copy Markdown
Member
  • Bump các thư viện: MineVNLib, PlayerPoints, PlaceholderAPI, bStats
  • Đổi PlayerPoints về repo gốc
  • Dùng Java 17 để build project, drop Java cổ đại
  • Bump lên paper-api 1.21.11 - phục vụ cho tính năng mới sau này (Dialog).

Sau khi test, plugin có thể chạy trên Java 17+, MC 1.12.2+

Summary by CodeRabbit

  • Chores
    • Updated the build and release process to use Java 21.
    • Improved compatibility with modern Java and Minecraft server environments.
    • Refreshed plugin integrations and supporting libraries.
    • Release packages now include the intended application artifact, making downloads more consistent.
    • Updated the Kotlin build tooling and raised the supported JVM baseline for improved reliability.

- Kotlin 2.4.10, Java target 17, CI Java 17
- MineVNLib, PlayerPoints, PlaceholderAPI, bStats
- Đổi PlayerPoints về repo gốc
@minhh2792 minhh2792 self-assigned this Aug 3, 2026
Copilot AI review requested due to automatic review settings August 3, 2026 18:32
@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The build targets Java 17 for compilation and Java 21 for toolchain resolution and CI. The Kotlin JVM plugin and plugin dependencies were updated. CI uploads only DotMan.jar.

Changes

Build modernization

Layer / File(s) Summary
Java toolchain and artifact publishing
.github/workflows/build.yml, .github/workflows/release.yml, build.gradle.kts
The Kotlin JVM plugin now uses 2.4.10. Gradle compilation targets Java 17, toolchain resolution targets Java 21, and CI runs on Java 21. Artifact uploads target DotMan.jar.
Plugin repositories and dependencies
dotman-plugin/build.gradle.kts
Rosewood and PaperMC repositories were added. The dmulloy2 repository was removed. Paper API and other plugin dependency versions were updated.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the library, Java, and Paper API version updates included in the pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bump-libs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

🧹 Nitpick comments (1)
dotman-plugin/build.gradle.kts (1)

12-12: 🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick win

Restrict the Rosewood repository to PlayerPoints.

Line 12 adds a broad repository for one dependency. Scope it with exclusiveContent to reduce dependency-confusion and repository-resolution risk.

Suggested change
-    maven("https://repo.rosewooddev.io/repository/public/")
+    exclusiveContent {
+        forRepository {
+            maven("https://repo.rosewooddev.io/repository/public/")
+        }
+        filter {
+            includeGroup("org.black_ixx")
+        }
+    }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@dotman-plugin/build.gradle.kts` at line 12, Update the repository declaration
in the Gradle configuration to wrap the Rosewood Maven repository in
exclusiveContent, restricting its resolution scope to the PlayerPoints
dependency while leaving other dependencies on their existing repositories.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@dotman-plugin/build.gradle.kts`:
- Line 12: Update the repository declaration in the Gradle configuration to wrap
the Rosewood Maven repository in exclusiveContent, restricting its resolution
scope to the PlayerPoints dependency while leaving other dependencies on their
existing repositories.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 388a0409-0533-4e43-883e-fb60a62550fc

📥 Commits

Reviewing files that changed from the base of the PR and between 1c8a7d4 and 1ae0602.

📒 Files selected for processing (4)
  • .github/workflows/build.yml
  • .github/workflows/release.yml
  • build.gradle.kts
  • dotman-plugin/build.gradle.kts

- Dùng JDK 21 toolchain để resolve Paper 1.21.11, giữ bytecode plugin Java 17
- Đổi API compile từ Spigot 1.20.4 sang Paper 1.21.11
- Thêm PaperMC Maven repository và bỏ Spigot snapshots repository
Copilot AI lite review requested due to automatic review settings August 4, 2026 06:05

Copilot AI left a comment

Copy link
Copy Markdown

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 the project’s build configuration and plugin dependencies, aiming to modernize the build/tooling (Kotlin + Java target) and refresh key Bukkit/Paper ecosystem libraries.

Changes:

  • Bumped Kotlin Gradle plugin version and updated Java compilation/target settings in the root Gradle build.
  • Updated dotman-plugin dependencies (MineVNLib, PlayerPoints, PlaceholderAPI, bStats) and switched from Spigot API to Paper API.
  • Updated GitHub Actions build and release workflows to use Java 17.

Reviewed changes

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

File Description
dotman-plugin/build.gradle.kts Switches to Paper API and bumps plugin library dependencies and repositories.
build.gradle.kts Updates Kotlin version and adjusts Java/Kotlin compilation and resolution settings.
.github/workflows/build.yml Runs CI build with Java 17.
.github/workflows/release.yml Runs release build with Java 17.

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

Comment thread .github/workflows/build.yml
Comment thread .github/workflows/release.yml
@minhh2792 minhh2792 changed the title Bump các thư viện & Java 17 Bump các thư viện, Java 17 và paper-api 1.21.11 Aug 4, 2026

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/build.yml:
- Line 35: Update the upload-artifact step containing the DotMan.jar path to set
if-no-files-found to error, ensuring the workflow fails when shadowJar does not
produce the expected artifact.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: b79dd970-0cd6-4fe0-995e-18e56a0a51a9

📥 Commits

Reviewing files that changed from the base of the PR and between 04ca369 and cfbd6eb.

📒 Files selected for processing (2)
  • .github/workflows/build.yml
  • .github/workflows/release.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/release.yml

Comment thread .github/workflows/build.yml

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated no new comments.

Suppressed comments (1)

dotman-plugin/build.gradle.kts:23

  • The PR description claims the plugin runs on MC 1.12.2+, but the build now compiles against Paper 1.21.11 API. Compiling against a much newer API makes it easy to accidentally use methods/classes that don’t exist on older servers, causing NoSuchMethodError/ClassNotFoundException at runtime. If 1.12.2 compatibility is still required, consider enforcing a minimal API baseline (e.g., compile against an older Spigot/Bukkit API and only use Paper-specific APIs behind reflection/guards) and document the supported server matrix.
dependencies {
    // paper
    compileOnly("io.papermc.paper:paper-api:1.21.11-R0.1-SNAPSHOT")

    // libs
    compileOnly("net.minevn:minevnlib-plugin:26.1.2")
    compileOnly("org.black_ixx:playerpoints:3.3.5")
    compileOnly("me.clip:placeholderapi:2.12.3")
    implementation("org.bstats:bstats-bukkit:3.2.1")

@minhh2792
minhh2792 requested a review from amadeusmz August 4, 2026 18:56
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