Compile against Adventure 5.2.0, the version Paper 26.3 ships

Paper still provides Adventure at runtime. Every Adventure method Iris calls has the same signature in 4.17 and 5.2.0, so older servers keep working.

Model used: Claude Opus 5.5
This commit is contained in:
piexel committed 2026-10-15 14:24:20 +02:00
1 parent d6d6fd031c
commit d35fe93f7f
2 files changed
+3

No files matched your search

+1
View File
@@ -53,6 +53,7 @@ val lib = "com.volmit.iris.util"
dependencies { dependencies {
// Provided or Classpath // Provided or Classpath
compileOnly(libs.paper) compileOnly(libs.paper)
compileOnly(platform(libs.adventure.bom))
compileOnly(libs.log4j.api) compileOnly(libs.log4j.api)
compileOnly(libs.log4j.core) compileOnly(libs.log4j.core)
+2
View File
@@ -14,6 +14,7 @@ grgit = "5.3.2" # https://github.com/ajoberstar/grgit
# Core Libraries # Core Libraries
lombok = "1.18.38" lombok = "1.18.38"
paper = "1.20.1-R0.1-SNAPSHOT" # https://repo.papermc.io/repository/maven-public/io/papermc/paper/paper-api/maven-metadata.xml paper = "1.20.1-R0.1-SNAPSHOT" # https://repo.papermc.io/repository/maven-public/io/papermc/paper/paper-api/maven-metadata.xml
adventure = "5.2.0" # https://github.com/KyoriPowered/adventure
log4j = "2.19.0" # https://central.sonatype.com/artifact/org.apache.logging.log4j/log4j-api log4j = "2.19.0" # https://central.sonatype.com/artifact/org.apache.logging.log4j/log4j-api
annotations = "26.0.2" # https://central.sonatype.com/artifact/org.jetbrains/annotations annotations = "26.0.2" # https://central.sonatype.com/artifact/org.jetbrains/annotations
@@ -58,6 +59,7 @@ craftengine = "26.5" # https://github.com/Xiao-MoMi/craft-engine/releases
# Core Libraries # Core Libraries
lombok = { module = "org.projectlombok:lombok", version.ref ="lombok" } lombok = { module = "org.projectlombok:lombok", version.ref ="lombok" }
paper = { module = "io.papermc.paper:paper-api", version.ref = "paper" } paper = { module = "io.papermc.paper:paper-api", version.ref = "paper" }
adventure-bom = { module = "net.kyori:adventure-bom", version.ref = "adventure" }
log4j-api = { module = "org.apache.logging.log4j:log4j-api", version.ref = "log4j" } log4j-api = { module = "org.apache.logging.log4j:log4j-api", version.ref = "log4j" }
log4j-core = { module = "org.apache.logging.log4j:log4j-core", version.ref = "log4j" } log4j-core = { module = "org.apache.logging.log4j:log4j-core", version.ref = "log4j" }
annotations = { module = "org.jetbrains:annotations", version.ref = "annotations" } annotations = { module = "org.jetbrains:annotations", version.ref = "annotations" }