From 1dd2544dda885a206bc8960d2c5b14e9cb9256e4 Mon Sep 17 00:00:00 2001 From: DuoDuoJuZi <1792249551@qq.com> Date: Wed, 25 Dec 2024 20:47:48 +0800 Subject: [PATCH] fix: try to fix the packages bugggg --- build.gradle.kts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 4d9d6a1..9e32668 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -103,10 +103,12 @@ publishing { publications { modules.forEach { module -> create("maven-${module.capitalize()}") { - from(components["java"]) + artifact(tasks.named("shadowJar").get()) { + //from(components["java"]) groupId = group.toString() artifactId = "$module" version = "${properties("version")}-${LocalDateTime.now().format(DateTimeFormatter.ofPattern("dd-MM-yy-hhmmss"))}" + } } } }