Skip to content

Commit

Permalink
fix: exclude paper-api
Browse files Browse the repository at this point in the history
  • Loading branch information
qixils committed Aug 7, 2023
1 parent 1f25e2f commit 58bfb88
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions patches/server/0001-Build-changes.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Subject: [PATCH] Build changes


diff --git a/build.gradle.kts b/build.gradle.kts
index fb98936bb8a5488db75d676c5bcb4060597fbbf8..8da130b40b6994c9256f6abd6bce0d9bde469d4f 100644
index fb98936bb8a5488db75d676c5bcb4060597fbbf8..55e8753d31f371c016cae67e8d5eee002293ac12 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1,4 +1,5 @@
Expand All @@ -14,20 +14,22 @@ index fb98936bb8a5488db75d676c5bcb4060597fbbf8..8da130b40b6994c9256f6abd6bce0d9b

plugins {
java
@@ -13,8 +14,10 @@ configurations.named(log4jPlugins.compileClasspathConfigurationName) {
@@ -13,8 +14,12 @@ configurations.named(log4jPlugins.compileClasspathConfigurationName) {
val alsoShade: Configuration by configurations.creating

dependencies {
- implementation(project(":paper-api"))
- implementation(project(":paper-mojangapi"))
+ // Parchment start
+ implementation(project(":parchment-api"))
+ implementation("io.papermc.paper:paper-mojangapi:${project.version}")
+ implementation("io.papermc.paper:paper-mojangapi:${project.version}") {
+ exclude("io.papermc.paper", "paper-api")
+ }
+ // Parchment end
// Paper start
implementation("org.jline:jline-terminal-jansi:3.21.0")
implementation("net.minecrell:terminalconsoleappender:1.3.0")
@@ -72,7 +75,7 @@ tasks.jar {
@@ -72,7 +77,7 @@ tasks.jar {
attributes(
"Main-Class" to "org.bukkit.craftbukkit.Main",
"Implementation-Title" to "CraftBukkit",
Expand All @@ -36,7 +38,7 @@ index fb98936bb8a5488db75d676c5bcb4060597fbbf8..8da130b40b6994c9256f6abd6bce0d9b
"Implementation-Vendor" to date, // Paper
"Specification-Title" to "Bukkit",
"Specification-Version" to project.version,
@@ -94,7 +97,27 @@ tasks.compileJava {
@@ -94,7 +99,27 @@ tasks.compileJava {

publishing {
publications.create<MavenPublication>("maven") {
Expand Down Expand Up @@ -65,7 +67,7 @@ index fb98936bb8a5488db75d676c5bcb4060597fbbf8..8da130b40b6994c9256f6abd6bce0d9b
}
}

@@ -149,7 +172,7 @@ fun TaskContainer.registerRunTask(
@@ -149,7 +174,7 @@ fun TaskContainer.registerRunTask(
name: String,
block: JavaExec.() -> Unit
): TaskProvider<JavaExec> = register<JavaExec>(name) {
Expand Down

0 comments on commit 58bfb88

Please sign in to comment.