mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 23:10:16 +01:00
Upgrade paperweight with bundler jar updates
This allows creating paperclip jars pre-patch (only the reobf'd jar for now).
This commit is contained in:
parent
65c02a066c
commit
9809c9e47b
11 changed files with 22 additions and 24 deletions
|
@ -1,5 +1,3 @@
|
||||||
import java.util.Locale
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
`java-library`
|
`java-library`
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
|
@ -16,7 +14,7 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":Paper-API"))
|
implementation(project(":paper-api"))
|
||||||
api("com.mojang:brigadier:1.0.18")
|
api("com.mojang:brigadier:1.0.18")
|
||||||
|
|
||||||
compileOnly("it.unimi.dsi:fastutil:8.2.2")
|
compileOnly("it.unimi.dsi:fastutil:8.2.2")
|
||||||
|
@ -29,7 +27,6 @@ dependencies {
|
||||||
|
|
||||||
configure<PublishingExtension> {
|
configure<PublishingExtension> {
|
||||||
publications.create<MavenPublication>("maven") {
|
publications.create<MavenPublication>("maven") {
|
||||||
artifactId = project.name.toLowerCase(Locale.ENGLISH)
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,12 +49,12 @@ dependencies {
|
||||||
paramMappings("net.fabricmc:yarn:1.18-pre8+build.4:mergedv2")
|
paramMappings("net.fabricmc:yarn:1.18-pre8+build.4:mergedv2")
|
||||||
remapper("net.fabricmc:tiny-remapper:0.7.0:fat")
|
remapper("net.fabricmc:tiny-remapper:0.7.0:fat")
|
||||||
decompiler("net.minecraftforge:forgeflower:1.5.498.22")
|
decompiler("net.minecraftforge:forgeflower:1.5.498.22")
|
||||||
paperclip("io.papermc:paperclip:2.0.1")
|
paperclip("io.papermc:paperclip:3.0.0-SNAPSHOT")
|
||||||
}
|
}
|
||||||
|
|
||||||
paperweight {
|
paperweight {
|
||||||
minecraftVersion.set(providers.gradleProperty("mcVersion"))
|
minecraftVersion.set(providers.gradleProperty("mcVersion"))
|
||||||
serverProject.set(project(":Paper-Server"))
|
serverProject.set(project(":paper-server"))
|
||||||
|
|
||||||
paramMappingsRepo.set("https://maven.fabricmc.net/")
|
paramMappingsRepo.set("https://maven.fabricmc.net/")
|
||||||
remapRepo.set("https://maven.fabricmc.net/")
|
remapRepo.set("https://maven.fabricmc.net/")
|
||||||
|
|
|
@ -31,8 +31,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/build.gradle.kts
|
+++ b/build.gradle.kts
|
||||||
@@ -0,0 +0,0 @@
|
@@ -0,0 +0,0 @@
|
||||||
+import java.util.Locale
|
|
||||||
+
|
|
||||||
+plugins {
|
+plugins {
|
||||||
+ `java-library`
|
+ `java-library`
|
||||||
+ `maven-publish`
|
+ `maven-publish`
|
||||||
|
@ -66,7 +64,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+
|
+
|
||||||
+configure<PublishingExtension> {
|
+configure<PublishingExtension> {
|
||||||
+ publications.create<MavenPublication>("maven") {
|
+ publications.create<MavenPublication>("maven") {
|
||||||
+ artifactId = project.name.toLowerCase(Locale.ENGLISH)
|
|
||||||
+ from(components["java"])
|
+ from(components["java"])
|
||||||
+ }
|
+ }
|
||||||
+}
|
+}
|
||||||
|
@ -82,7 +79,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+
|
+
|
||||||
+tasks.jar {
|
+tasks.jar {
|
||||||
+ from(generateApiVersioningFile.map { it.outputs.files.singleFile }) {
|
+ from(generateApiVersioningFile.map { it.outputs.files.singleFile }) {
|
||||||
+ into("META-INF/maven/${project.group}/${project.name.toLowerCase(Locale.ENGLISH)}")
|
+ into("META-INF/maven/${project.group}/${project.name}")
|
||||||
+ }
|
+ }
|
||||||
+ manifest {
|
+ manifest {
|
||||||
+ attributes(
|
+ attributes(
|
||||||
|
|
|
@ -10,7 +10,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+++ b/build.gradle.kts
|
+++ b/build.gradle.kts
|
||||||
@@ -0,0 +0,0 @@ repositories {
|
@@ -0,0 +0,0 @@ repositories {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":Paper-API"))
|
implementation(project(":paper-api"))
|
||||||
implementation("jline:jline:2.12.1")
|
implementation("jline:jline:2.12.1")
|
||||||
- implementation("org.apache.logging.log4j:log4j-iostreams:2.14.1") {
|
- implementation("org.apache.logging.log4j:log4j-iostreams:2.14.1") {
|
||||||
- exclude(group = "org.apache.logging.log4j", module = "log4j-api")
|
- exclude(group = "org.apache.logging.log4j", module = "log4j-api")
|
||||||
|
|
|
@ -13,9 +13,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+import io.papermc.paperweight.tasks.BaseTask
|
+import io.papermc.paperweight.tasks.BaseTask
|
||||||
import io.papermc.paperweight.util.*
|
import io.papermc.paperweight.util.*
|
||||||
+import java.nio.file.Files
|
+import java.nio.file.Files
|
||||||
import java.util.Locale
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
|
java
|
||||||
@@ -0,0 +0,0 @@ plugins {
|
@@ -0,0 +0,0 @@ plugins {
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|
|
@ -16,8 +16,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
@@ -0,0 +0,0 @@ repositories {
|
@@ -0,0 +0,0 @@ repositories {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":Paper-API"))
|
implementation(project(":paper-api"))
|
||||||
+ implementation(project(":Paper-MojangAPI"))
|
+ implementation(project(":paper-mojangapi"))
|
||||||
// Paper start
|
// Paper start
|
||||||
implementation("org.jline:jline-terminal-jansi:3.21.0")
|
implementation("org.jline:jline-terminal-jansi:3.21.0")
|
||||||
implementation("net.minecrell:terminalconsoleappender:1.3.0")
|
implementation("net.minecrell:terminalconsoleappender:1.3.0")
|
||||||
|
|
|
@ -33,7 +33,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+++ b/build.gradle.kts
|
+++ b/build.gradle.kts
|
||||||
@@ -0,0 +0,0 @@
|
@@ -0,0 +0,0 @@
|
||||||
+import io.papermc.paperweight.util.*
|
+import io.papermc.paperweight.util.*
|
||||||
+import java.util.Locale
|
|
||||||
+
|
+
|
||||||
+plugins {
|
+plugins {
|
||||||
+ java
|
+ java
|
||||||
|
@ -46,7 +45,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+dependencies {
|
+dependencies {
|
||||||
+ implementation(project(":Paper-API"))
|
+ implementation(project(":paper-api"))
|
||||||
+ implementation("jline:jline:2.12.1")
|
+ implementation("jline:jline:2.12.1")
|
||||||
+ implementation("org.apache.logging.log4j:log4j-iostreams:2.14.1") {
|
+ implementation("org.apache.logging.log4j:log4j-iostreams:2.14.1") {
|
||||||
+ exclude(group = "org.apache.logging.log4j", module = "log4j-api")
|
+ exclude(group = "org.apache.logging.log4j", module = "log4j-api")
|
||||||
|
@ -92,7 +91,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+
|
+
|
||||||
+publishing {
|
+publishing {
|
||||||
+ publications.create<MavenPublication>("maven") {
|
+ publications.create<MavenPublication>("maven") {
|
||||||
+ artifactId = rootProject.name.toLowerCase(Locale.ENGLISH)
|
|
||||||
+ artifact(tasks.reobfJar) {
|
+ artifact(tasks.reobfJar) {
|
||||||
+ classifier = null
|
+ classifier = null
|
||||||
+ }
|
+ }
|
||||||
|
|
|
@ -25,7 +25,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
@@ -0,0 +0,0 @@ repositories {
|
@@ -0,0 +0,0 @@ repositories {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":Paper-API"))
|
implementation(project(":paper-api"))
|
||||||
- implementation("jline:jline:2.12.1")
|
- implementation("jline:jline:2.12.1")
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
+ implementation("org.jline:jline-terminal-jansi:3.21.0")
|
+ implementation("org.jline:jline-terminal-jansi:3.21.0")
|
||||||
|
|
|
@ -12,7 +12,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
runtimeOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.7.0")
|
runtimeOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.7.0")
|
||||||
|
|
||||||
implementation("net.fabricmc:mapping-io:0.3.0") // Paper - needed to read mappings for stacktrace deobfuscation
|
implementation("net.fabricmc:mapping-io:0.3.0") // Paper - needed to read mappings for stacktrace deobfuscation
|
||||||
+ implementation("com.velocitypowered:velocity-native:1.1.0-SNAPSHOT") // Paper
|
+ // Paper start - Use Velocity cipher
|
||||||
|
+ implementation("com.velocitypowered:velocity-native:1.1.0-SNAPSHOT") {
|
||||||
|
+ isTransitive = false
|
||||||
|
+ }
|
||||||
|
+ // Paper end
|
||||||
|
|
||||||
testImplementation("io.github.classgraph:classgraph:4.8.47") // Paper - mob goal test
|
testImplementation("io.github.classgraph:classgraph:4.8.47") // Paper - mob goal test
|
||||||
testImplementation("junit:junit:4.13.1")
|
testImplementation("junit:junit:4.13.1")
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import java.util.Locale
|
||||||
|
|
||||||
pluginManagement {
|
pluginManagement {
|
||||||
repositories {
|
repositories {
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
|
@ -7,11 +9,11 @@ pluginManagement {
|
||||||
|
|
||||||
rootProject.name = "Paper"
|
rootProject.name = "Paper"
|
||||||
|
|
||||||
include(
|
for (name in listOf("Paper-API", "Paper-Server", "Paper-MojangAPI")) {
|
||||||
"Paper-API",
|
val projName = name.toLowerCase(Locale.ENGLISH)
|
||||||
"Paper-Server",
|
include(projName)
|
||||||
"Paper-MojangAPI",
|
findProject(":$projName")!!.projectDir = file(name)
|
||||||
)
|
}
|
||||||
|
|
||||||
val testPlugin = file("test-plugin.settings.gradle.kts")
|
val testPlugin = file("test-plugin.settings.gradle.kts")
|
||||||
if (testPlugin.exists()) {
|
if (testPlugin.exists()) {
|
||||||
|
|
Loading…
Reference in a new issue