修复编译并支持jitpack#9
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
该 PR 旨在修复当前项目在依赖更新后的编译问题,并让项目能够在 JitPack 上顺利构建(指定构建 JDK、调整依赖来源与版本)。
Changes:
- 移除
OwnedBlockMenuPreset/OwnedBlockMenuPresetNode中使用旧版BlockMenuPreset构造方式(含universal参数)的构造器,匹配当前依赖 API。 - 更新 Maven 仓库与依赖坐标:切换 Slimefun4 到新的 groupId/version,并升级 PlaceholderAPI 版本。
- 新增
jitpack.yml指定 JitPack 构建使用 OpenJDK 21。
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/main/java/io/github/sefiraat/emctech/slimefun/types/OwnedBlockMenuPresetNode.java | 移除旧构造器重载,避免与新 Slimefun API(BlockMenuPreset 构造签名)不兼容导致编译失败。 |
| src/main/java/io/github/sefiraat/emctech/slimefun/types/OwnedBlockMenuPreset.java | 同步移除旧构造器重载,统一为使用 super(id, title) 的构造方式。 |
| pom.xml | 调整仓库与依赖:引入新的 Maven 仓库、切换 Slimefun4 坐标并升级 PlaceholderAPI 版本以满足编译/解析需求。 |
| jitpack.yml | 指定 JitPack 构建 JDK 为 OpenJDK 21,提高与新依赖字节码版本的兼容性。 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.