Updated Upstream (Folia)

This commit is contained in:
HaHaWTH
2025-01-19 08:14:38 -08:00
parent 11eecfee58
commit eb91e07a0e
3 changed files with 21 additions and 27 deletions

View File

@@ -3,7 +3,7 @@ import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins { plugins {
java // TODO java launcher tasks java // TODO java launcher tasks
id("io.papermc.paperweight.patcher") version "2.0.0-beta.13" id("io.papermc.paperweight.patcher") version "2.0.0-beta.14"
} }
paperweight { paperweight {
@@ -26,11 +26,6 @@ paperweight {
patchesDir = file("luminol-api/paper-patches") patchesDir = file("luminol-api/paper-patches")
outputDir = file("paper-api") outputDir = file("paper-api")
} }
patchRepo("paperApiGenerator") {
upstreamPath = "paper-api-generator"
patchesDir = file("luminol-api-generator/paper-patches")
outputDir = file("paper-api-generator")
}
patchDir("foliaApi") { patchDir("foliaApi") {
upstreamPath = "folia-api" upstreamPath = "folia-api"
excludes = listOf("build.gradle.kts", "build.gradle.kts.patch", "paper-patches") excludes = listOf("build.gradle.kts", "build.gradle.kts.patch", "paper-patches")

View File

@@ -2,7 +2,7 @@ group = me.earthme.luminol
version=1.21.4-R0.1-SNAPSHOT version=1.21.4-R0.1-SNAPSHOT
mcVersion=1.21.4 mcVersion=1.21.4
foliaRef=5198c2f583b13d442550f3940a6c7a9d0b9c58f4 foliaRef=306dc07ce666235401f8f4ac2c8e1fae0b60a69e
org.gradle.configuration-cache=true org.gradle.configuration-cache=true
org.gradle.caching=true org.gradle.caching=true

View File

@@ -1,19 +1,21 @@
--- a/folia-server/build.gradle.kts --- a/folia-server/build.gradle.kts
+++ b/folia-server/build.gradle.kts +++ b/folia-server/build.gradle.kts
@@ -22,6 +_,7 @@ @@ -20,8 +_,9 @@
minecraftVersion = providers.gradleProperty("mcVersion")
// macheOldPath = file("F:\\Projects\\PaperTooling\\mache\\versions\\1.21.4\\src\\main\\java")
// gitFilePatches = true // gitFilePatches = true
-
+
val fork = forks.register("folia") { val fork = forks.register("folia") {
+ rootDirectory = upstreamsDirectory().map { it.dir("folia") } + rootDirectory = upstreamsDirectory().map { it.dir("folia") }
upstream.patchDir("paperServer") { upstream.patchDir("paperServer") {
upstreamPath = "paper-server" upstreamPath = "paper-server"
excludes = setOf("src/minecraft", "patches", "build.gradle.kts") excludes = setOf("src/minecraft", "patches", "build.gradle.kts")
@@ -30,8 +_,24 @@ @@ -30,7 +_,23 @@
} }
} }
- activeFork = fork - activeFork = fork
-
+ val luminol = forks.register("luminol") { + val luminol = forks.register("luminol") {
+ forks = fork + forks = fork
+ upstream.patchRepo("paperServer") { + upstream.patchRepo("paperServer") {
@@ -31,11 +33,10 @@
+ } + }
+ +
+ activeFork = luminol + activeFork = luminol
+
paper { spigot {
paperServerDir = upstreamsDirectory().map { it.dir("paper/paper-server") } buildDataRef = "3edaf46ec1eed4115ce1b18d2846cded42577e42"
} @@ -116,10 +_,14 @@
@@ -120,10 +_,14 @@
main { main {
java { srcDir("../paper-server/src/main/java") } java { srcDir("../paper-server/src/main/java") }
resources { srcDir("../paper-server/src/main/resources") } resources { srcDir("../paper-server/src/main/resources") }
@@ -50,7 +51,7 @@
} }
} }
@@ -147,7 +_,14 @@ @@ -143,7 +_,14 @@
} }
dependencies { dependencies {
@@ -66,11 +67,10 @@
implementation("ca.spottedleaf:concurrentutil:0.0.3") implementation("ca.spottedleaf:concurrentutil:0.0.3")
implementation("org.jline:jline-terminal-ffm:3.27.1") // use ffm on java 22+ implementation("org.jline:jline-terminal-ffm:3.27.1") // use ffm on java 22+
implementation("org.jline:jline-terminal-jni:3.27.1") // fall back to jni on java 21 implementation("org.jline:jline-terminal-jni:3.27.1") // fall back to jni on java 21
@@ -204,6 +_,14 @@ @@ -200,6 +_,13 @@
implementation("me.lucko:spark-paper:1.10.119-SNAPSHOT") implementation("me.lucko:spark-paper:1.10.119-SNAPSHOT")
} }
+
+// Pufferfish Start +// Pufferfish Start
+tasks.withType<JavaCompile> { +tasks.withType<JavaCompile> {
+ val compilerArgs = options.compilerArgs + val compilerArgs = options.compilerArgs
@@ -81,31 +81,30 @@
tasks.jar { tasks.jar {
manifest { manifest {
val git = Git(rootProject.layout.projectDirectory.path) val git = Git(rootProject.layout.projectDirectory.path)
@@ -216,14 +_,14 @@ @@ -212,14 +_,14 @@
val gitBranch = git.exec(providers, "rev-parse", "--abbrev-ref", "HEAD").get().trim() val gitBranch = git.exec(providers, "rev-parse", "--abbrev-ref", "HEAD").get().trim()
attributes( attributes(
"Main-Class" to "org.bukkit.craftbukkit.Main", "Main-Class" to "org.bukkit.craftbukkit.Main",
- "Implementation-Title" to "Folia", - "Implementation-Title" to "Folia",
+ "Implementation-Title" to "Luminol", // Luminol + "Implementation-Title" to "Luminol",
"Implementation-Version" to implementationVersion, "Implementation-Version" to implementationVersion,
"Implementation-Vendor" to date, "Implementation-Vendor" to date,
- "Specification-Title" to "Folia", - "Specification-Title" to "Folia",
+ "Specification-Title" to "Luminol", // Luminol + "Specification-Title" to "Luminol",
"Specification-Version" to project.version, "Specification-Version" to project.version,
- "Specification-Vendor" to "Paper Team", - "Specification-Vendor" to "Paper Team",
- "Brand-Id" to "papermc:folia", - "Brand-Id" to "papermc:folia",
- "Brand-Name" to "Folia", - "Brand-Name" to "Folia",
+ "Specification-Vendor" to "Luminol Team", // Luminol + "Specification-Vendor" to "Luminol Team",
+ "Brand-Id" to "luminolmc:luminol", // Luminol + "Brand-Id" to "luminolmc:luminol",
+ "Brand-Name" to "Luminol", // Luminol + "Brand-Name" to "Luminol",
"Build-Number" to (build ?: ""), "Build-Number" to (build ?: ""),
"Build-Time" to buildTime.toString(), "Build-Time" to buildTime.toString(),
"Git-Branch" to gitBranch, "Git-Branch" to gitBranch,
@@ -354,3 +_,10 @@ @@ -350,3 +_,9 @@
classpath(tasks.createReobfPaperclipJar.flatMap { it.outputZip }) classpath(tasks.createReobfPaperclipJar.flatMap { it.outputZip })
mainClass.set(null as String?) mainClass.set(null as String?)
} }
+
+// Pufferfish Start +// Pufferfish Start
+tasks.withType<JavaCompile> { +tasks.withType<JavaCompile> {
+ val compilerArgs = options.compilerArgs + val compilerArgs = options.compilerArgs