From e7e54117ccf694fb66d3c096f650dcafb0c1c7b5 Mon Sep 17 00:00:00 2001 From: max Date: Mon, 6 May 2024 16:44:25 +0800 Subject: [PATCH] build: Exclude slf4j when run fatJar relocation --- build.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 2cd5bcd..b2fea47 100644 --- a/build.gradle +++ b/build.gradle @@ -32,10 +32,11 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar tasks.named('shadowJar', ShadowJar) { archiveClassifier.set('all-deps') archiveVersion.set(project.version.toString()) - + relocate("org.slf4j", "org.slf4j") { + include "org/slf4j/**" + } enableRelocation true relocationPrefix "qingstor" - } tasks {