From faac14cc4cc0530584fffb1a4c8fe9cc6c4a0bd0 Mon Sep 17 00:00:00 2001
From: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
Date: Tue, 23 Apr 2024 14:43:32 -0700
Subject: [PATCH] Set mercury sourceCompat

---
 build.gradle.kts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/build.gradle.kts b/build.gradle.kts
index ecfc0abe25..b2230193a4 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -27,6 +27,10 @@ allprojects {
 
 val paperMavenPublicUrl = "https://repo.papermc.io/repository/maven-public/"
 
+tasks.remapSpigotSources {
+    sourceCompatibility = 21 // TODO change default in paperweight
+}
+
 subprojects {
     tasks.withType<JavaCompile> {
         options.encoding = Charsets.UTF_8.name()