Skip to content

Commit

Permalink
disable compilation warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
404Setup committed Jul 29, 2024
1 parent f3c854d commit 06daec1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
13 changes: 6 additions & 7 deletions patches/api/0001-Rebrand.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,18 @@ Subject: [PATCH] Rebrand


diff --git a/build.gradle.kts b/build.gradle.kts
index 6aef83558a5ef7e84873b127c3bb43a6468c9a24..ce7417105888f2b5b6b585cecb13aaa22fb700c2 100644
index 6aef83558a5ef7e84873b127c3bb43a6468c9a24..36b221014b99327afa2abda5d232659cfa922839 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -141,6 +141,13 @@ tasks.jar {
@@ -141,6 +141,12 @@ tasks.jar {
}
}

+// Pufferfish Start
+tasks.withType<JavaCompile> {
+ val compilerArgs = options.compilerArgs
+ compilerArgs.add("--add-modules=jdk.incubator.vector")
+tasks.compileJava {
+ options.compilerArgs.add("--add-modules=jdk.incubator.vector")
+ options.compilerArgs.add("-Xlint:-deprecation")
+ options.isWarnings = false
+}
+// Pufferfish End
+
tasks.withType<Javadoc> {
(options as StandardJavadocDocletOptions).addStringOption("-add-modules", "jdk.incubator.vector") // Purpur - our javadocs need this for pufferfish's SIMD patch
Expand Down
16 changes: 7 additions & 9 deletions patches/server/0001-Fix-build-and-Rebrand.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Subject: [PATCH] Fix build and Rebrand


diff --git a/build.gradle.kts b/build.gradle.kts
index d67acf49205e6df94e3d65de624f2ddc6c34a44b..052bfd0b79bf6e1282a563950505df81f6333eb8 100644
index d67acf49205e6df94e3d65de624f2ddc6c34a44b..1342aefe5a298a373ab2cd00bf42356c6cf24c08 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -4,6 +4,8 @@ import java.time.Instant
Expand All @@ -26,7 +26,7 @@ index d67acf49205e6df94e3d65de624f2ddc6c34a44b..052bfd0b79bf6e1282a563950505df81
// Paper start
implementation("org.jline:jline-terminal-jansi:3.21.0")
implementation("net.minecrell:terminalconsoleappender:1.3.0")
@@ -72,7 +74,22 @@ dependencies {
@@ -72,6 +74,20 @@ dependencies {
implementation("io.papermc:reflection-rewriter-runtime:$reflectionRewriterVersion")
implementation("io.papermc:reflection-rewriter-proxy-generator:$reflectionRewriterVersion")
// Paper end - Remap reflection
Expand All @@ -40,16 +40,14 @@ index d67acf49205e6df94e3d65de624f2ddc6c34a44b..052bfd0b79bf6e1282a563950505df81
+ // Vine end
+}
+
+// Pufferfish Start
+tasks.withType<JavaCompile> {
+ val compilerArgs = options.compilerArgs
+ compilerArgs.add("--add-modules=jdk.incubator.vector")
+tasks.compileJava {
+ options.compilerArgs.add("--add-modules=jdk.incubator.vector")
+ options.compilerArgs.add("-Xlint:-deprecation")
+ options.isWarnings = false
}
+// Pufferfish End

paperweight {
craftBukkitPackageVersion.set("v1_20_R4") // also needs to be updated in MappingEnvironment
@@ -91,14 +108,14 @@ tasks.jar {
@@ -91,14 +107,14 @@ tasks.jar {
val gitBranch = git("rev-parse", "--abbrev-ref", "HEAD").getText().trim() // Paper
attributes(
"Main-Class" to "org.bukkit.craftbukkit.Main",
Expand Down

0 comments on commit 06daec1

Please sign in to comment.