let's get this started

This commit is contained in:
granny
2026-03-07 15:09:15 -08:00
parent 8805b31c5b
commit a160e0e91d
4 changed files with 25 additions and 20 deletions

View File

@@ -9,10 +9,11 @@
plugins {
`java-library`
@@ -22,6 +_,18 @@
@@ -22,9 +_,21 @@
minecraftVersion = providers.gradleProperty("mcVersion")
gitFilePatches = false
- updatingMinecraft {
+ // Purpur start - Rebrand
+ val purpur = forks.register("purpur") {
+ upstream.patchDir("paperServer") {
@@ -25,10 +26,14 @@
+ activeFork = purpur
+ // Purpur end - Rebrand
+
spigot {
enabled = true
buildDataRef = "17f77cee7117ab9d6175f088ae8962bfd04e61a9"
@@ -104,7 +_,21 @@
+ /*updatingMinecraft { // Purpur start - TODO - snapshot - we don't need this
oldPaperCommit = "7e80cef5198561d0db53406127e5b8bc7af51577"
- }
+ }*/ // Purpur end - TODO - snapshot - we don't need this
}
tasks.generateDevelopmentBundle {
@@ -86,7 +_,21 @@
}
}
@@ -51,7 +56,7 @@
configurations.named(log4jPlugins.compileClasspathConfigurationName) {
extendsFrom(configurations.compileClasspath.get())
}
@@ -127,7 +_,7 @@
@@ -109,7 +_,7 @@
}
dependencies {
@@ -60,8 +65,8 @@
implementation("ca.spottedleaf:concurrentutil:0.0.8")
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
@@ -153,6 +_,10 @@
implementation("org.ow2.asm:asm-commons:9.8")
@@ -135,6 +_,10 @@
implementation("org.ow2.asm:asm-commons:9.9.1")
implementation("org.spongepowered:configurate-yaml:4.2.0")
+ implementation("org.mozilla:rhino-runtime:1.7.14") // Purpur
@@ -71,7 +76,7 @@
// Deps that were previously in the API but have now been moved here for backwards compat, eventually to be removed
runtimeOnly("commons-lang:commons-lang:2.6")
runtimeOnly("org.xerial:sqlite-jdbc:3.49.1.0")
@@ -191,21 +_,21 @@
@@ -164,21 +_,21 @@
val git = Git(rootProject.layout.projectDirectory.path)
val mcVersion = rootProject.providers.gradleProperty("mcVersion").get()
val build = System.getenv("BUILD_NUMBER") ?: null
@@ -99,7 +104,7 @@
"Build-Number" to (build ?: ""),
"Build-Time" to buildTime.toString(),
"Git-Branch" to gitBranch,
@@ -264,7 +_,7 @@
@@ -237,7 +_,7 @@
jvmArgumentProviders.add(provider)
}
@@ -108,7 +113,7 @@
idea {
module {
generatedSourceDirs.add(generatedDir.toFile())
@@ -356,7 +_,7 @@
@@ -314,7 +_,7 @@
mainClass.set(null as String?)
}
@@ -117,7 +122,7 @@
project("paper")
versionFamily(paperweight.minecraftVersion.map { it.split(".", "-").takeWhile { part -> part.toIntOrNull() != null }.take(2).joinToString(".") })
version(paperweight.minecraftVersion)
@@ -371,4 +_,47 @@
@@ -329,4 +_,47 @@
}
}
}