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:
+10
-10
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user