From 24d77c71badbcffacf9f9956993af87fbc055e05 Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Wed, 14 May 2025 16:44:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0sourceJar=20task?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index 6c0ded56e..4c37e4a81 100644 --- a/build.gradle +++ b/build.gradle @@ -217,6 +217,10 @@ publishing { } } +java { + withSourcesJar() +} + tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation }