summarylogtreecommitdiffstats
path: root/0001-Target-Java-21.patch
blob: f81d5aafae5b1806f84b4c41141025e36767f263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From b92f4a9e20d4e2a8ebe8cce6cd75d0516b881388 Mon Sep 17 00:00:00 2001
From: Aviana Cruz <gwencroft@proton.me>
Date: Sun, 6 Nov 2022 13:28:59 +0800
Subject: [PATCH 1/2] Target Java 21

---
 HMCL/build.gradle.kts | 2 +-
 build.gradle.kts      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/HMCL/build.gradle.kts b/HMCL/build.gradle.kts
index a53d87750..ae6abee55 100644
--- a/HMCL/build.gradle.kts
+++ b/HMCL/build.gradle.kts
@@ -9,7 +9,7 @@ import java.security.spec.PKCS8EncodedKeySpec
 import java.util.zip.ZipFile
 
 plugins {
-    id("com.github.johnrengelman.shadow") version "7.1.2"
+    id("com.gradleup.shadow") version "8.3.6"
 }
 
 val isOfficial = System.getenv("HMCL_SIGNATURE_KEY") != null
diff --git a/build.gradle.kts b/build.gradle.kts
index 2317dbc93..27774c7bc 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -24,8 +24,8 @@ subprojects {
     }
 
     tasks.withType<JavaCompile> {
-        sourceCompatibility = "1.8"
-        targetCompatibility = "1.8"
+        sourceCompatibility = "21"
+        targetCompatibility = "21"
 
         options.encoding = "UTF-8"
     }
-- 
2.49.0