From f783f74fb9763b645bb0bb7ec973bc9621e042be Mon Sep 17 00:00:00 2001 From: halibobo1205 Date: Tue, 30 Jul 2024 21:18:05 +0800 Subject: [PATCH] feat(jar): exclude unused file avoid unnamed package not allowed in module exception --- framework/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework/build.gradle b/framework/build.gradle index d3dc308db03..0d719e328b7 100644 --- a/framework/build.gradle +++ b/framework/build.gradle @@ -169,6 +169,11 @@ def binaryRelease(taskName, jarName, mainClass) { exclude "META-INF/*.DSA" exclude "META-INF/*.RSA" + // exclude these files for awssdk + exclude "VersionInfo.java" + + exclude("UpdateParserFiles.class") + manifest { attributes "Main-Class": "${mainClass}" }