Updated game rules to match latest Paper API changes, upgraded dependencies, and configured Gradle for modern plugin development. Added run-paper for testing, updated Gradle wrapper, and included executable scripts for compatibility.

This commit is contained in:
2026-07-24 15:53:02 +02:00
parent b73352fe5b
commit cf9326c2a5
8 changed files with 368 additions and 18 deletions
+10 -10
View File
@@ -1,6 +1,7 @@
plugins {
id 'java'
id 'com.gradleup.shadow' version '8.3.1'
id 'com.gradleup.shadow' version '9.6.1'
id 'xyz.jpenilla.run-paper' version '3.0.2'
}
group = 'eu.mhsl.minecraft'
@@ -22,24 +23,18 @@ repositories {
}
dependencies {
compileOnly "io.papermc.paper:paper-api:1.21.10-R0.1-SNAPSHOT"
compileOnly "io.papermc.paper:paper-api:26.2.build.65-beta"
implementation "co.aikar:taskchain-bukkit:3.7.2"
}
def targetJavaVersion = 21
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
toolchain.languageVersion = JavaLanguageVersion.of(25)
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filteringCharset = 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
@@ -56,5 +51,10 @@ shadowJar {
relocate 'co.aikar.taskchain', 'eu.mhsl.minecraft.pixelblocks.taskchain'
}
runServer {
minecraftVersion '26.2'
systemProperty 'com.mojang.eula.agree', 'true'
}
jar.dependsOn shadowJar
copyJarToTestServer.dependsOn jar