Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate HCCore to 1.21 #178

Merged
merged 2 commits into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ group = "com.hackclub.hccore"
description = "Main plugin for the Hack Club Minecraft server."

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

dependencies {
Expand All @@ -25,8 +25,8 @@ dependencies {
implementation("org.apache.commons:commons-collections4:4.4")

compileOnly("com.frengor:ultimateadvancementapi:2.2.3")
compileOnly("com.comphenix.protocol:ProtocolLib:5.0.0-SNAPSHOT")
compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT")
compileOnly("com.comphenix.protocol:ProtocolLib:5.1.0")
compileOnly("io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT")
compileOnly("com.mojang:brigadier:1.0.18")
}

Expand All @@ -38,7 +38,7 @@ tasks {

compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
options.release.set(21)
// show deprecation warnings: paper deprecated lots of pure string functions for chat components
// options.isDeprecation = true
}
Expand All @@ -59,7 +59,7 @@ tasks {


runServer {
minecraftVersion("1.19.4")
minecraftVersion("1.21")
systemProperty("net.kyori.adventure.text.warnWhenLegacyFormattingDetected", false)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: ${name}
version: ${version}
api-version: 1.20
api-version: 1.21
main: com.hackclub.hccore.HCCorePlugin
depend:
- UltimateAdvancementAPI
Expand Down
Loading