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 {