From 8be7919abb7529345f8751aa110944ed500fb819 Mon Sep 17 00:00:00 2001
From: oddlama <oddlama@oddlama.org>
Date: Wed, 20 Nov 2024 15:42:38 +0100
Subject: [PATCH] chore: disable this-escape warning only for paper

---
 build.gradle.kts | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/build.gradle.kts b/build.gradle.kts
index d4411804..839e7227 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -38,7 +38,7 @@ subprojects {
 	}
 
 	tasks.withType<JavaCompile> {
-		options.compilerArgs.addAll(arrayOf("-Xlint:all", "-Xlint:-processing", "-Xdiags:verbose", "-Xlint:-this-escape"))
+		options.compilerArgs.addAll(arrayOf("-Xlint:all", "-Xlint:-processing", "-Xdiags:verbose"))
 		options.encoding = "UTF-8"
 	}
 
@@ -54,6 +54,10 @@ configure(subprojects.filter {
 }) {
 	apply(plugin = "io.papermc.paperweight.userdev")
 
+	tasks.withType<JavaCompile> {
+		options.compilerArgs.addAll(arrayOf("-Xlint:-this-escape"))
+	}
+
 	dependencies {
 		paperweight.paperDevBundle("1.21.3-R0.1-SNAPSHOT")
 	}