mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-18 17:07:43 +01:00
initial work on paperweight & prepare for 1.17
This commit is contained in:
51
patches/server/0001-Build-System-Changes.patch
Normal file
51
patches/server/0001-Build-System-Changes.patch
Normal file
@@ -0,0 +1,51 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Ben Kerllenevich <me@notom3ga.me>
|
||||
Date: Sat, 12 Jun 2021 12:36:01 -0400
|
||||
Subject: [PATCH] Build System Changes
|
||||
|
||||
todo: merge with rebrand patch
|
||||
|
||||
diff --git a/build.gradle.kts b/build.gradle.kts
|
||||
index ac607a3be84bc02dedb95cab9a5eace40e33b511..5d5b4753315a423868990501f149d940fa626552 100644
|
||||
--- a/build.gradle.kts
|
||||
+++ b/build.gradle.kts
|
||||
@@ -20,7 +20,7 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
- implementation(project(":Paper-API"))
|
||||
+ implementation(project(":Purpur-API")) // Purpur
|
||||
// Paper start
|
||||
implementation("org.jline:jline-terminal-jansi:3.12.1")
|
||||
implementation("net.minecrell:terminalconsoleappender:1.2.0")
|
||||
@@ -50,6 +50,8 @@ dependencies {
|
||||
implementation("co.aikar:cleaner:1.0-SNAPSHOT") // Paper
|
||||
implementation("io.netty:netty-all:4.1.65.Final") // Paper
|
||||
|
||||
+ implementation("cat.inspiracio", "rhino-js-engine", "1.7.7.1") // Purpur
|
||||
+
|
||||
testImplementation("junit:junit:4.13.1")
|
||||
testImplementation("org.hamcrest:hamcrest-library:1.3")
|
||||
}
|
||||
@@ -62,7 +64,7 @@ tasks.jar {
|
||||
attributes(mapOf(
|
||||
"Main-Class" to "org.bukkit.craftbukkit.Main",
|
||||
"Implementation-Title" to "CraftBukkit",
|
||||
- "Implementation-Version" to "git-Paper-\"$gitHash\"",
|
||||
+ "Implementation-Version" to "git-Purpur-\"$gitHash\"", // Purpur
|
||||
"Implementation-Vendor" to SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").format(Date()), // Paper
|
||||
"Specification-Title" to "Bukkit",
|
||||
"Specification-Version" to project.version,
|
||||
@@ -115,10 +117,12 @@ tasks.registerRunTask("runShadow") {
|
||||
classpath(tasks.shadowJar.flatMap { it.archiveFile })
|
||||
}
|
||||
|
||||
+/* // Purpur Start - reobfJar not found
|
||||
tasks.registerRunTask("runReobf") {
|
||||
description = "Spin up a test server from the reobfJar output jar"
|
||||
classpath(tasks.reobfJar.flatMap { it.outputJar })
|
||||
}
|
||||
+ */ // Purpur End
|
||||
|
||||
tasks.registerRunTask("runDev") {
|
||||
description = "Spin up a non-shaded non-remapped test server"
|
||||
Reference in New Issue
Block a user