From 985fde9aa2eff50e8333ef976fbb39c9f4a2e0b8 Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Fri, 6 Oct 2023 22:24:14 +0800 Subject: [PATCH] fix sources jar gen in scala --- build.gradle | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 39c8d01..e22d4d9 100644 --- a/build.gradle +++ b/build.gradle @@ -92,6 +92,10 @@ dependencies { } +java { + withSourcesJar() +} + tasks.withType(JavaCompile).configureEach { sourceCompatibility proj_java.getMajorVersion() @@ -144,9 +148,12 @@ buildConfig { } +tasks.withType(Jar).configureEach { + archiveBaseName.set proj_archive_name +} + shadowJar { - archiveBaseName.set proj_archive_name archiveClassifier.set "fat" if (project.hasProperty("dockerBuild")) {