From 941d20349400ccc42fb5f389b19d47cab455f53d Mon Sep 17 00:00:00 2001 From: bconlon Date: Mon, 2 Dec 2024 21:00:50 -0800 Subject: [PATCH] build: attempt fabric publishing fix --- buildSrc/src/main/groovy/multiloader-common.gradle | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/groovy/multiloader-common.gradle b/buildSrc/src/main/groovy/multiloader-common.gradle index a2dc096..2a5847d 100644 --- a/buildSrc/src/main/groovy/multiloader-common.gradle +++ b/buildSrc/src/main/groovy/multiloader-common.gradle @@ -129,8 +129,12 @@ publishing { publications { mavenJava(MavenPublication) { artifactId project.archivesBaseName - artifact project.tasks.findByName(project.name == "fabric" ? "remapJar" : "jar") - artifact project.tasks.findByName(project.name == "fabric" ? "remapSourcesJar" : "sourcesJar") + if (project.name == "fabric") { + from components.java + } else { + artifact project.jar + artifact project.sourcesJar + } } } repositories {