Skip to content

Commit 941d203

Browse files
committed
build: attempt fabric publishing fix
1 parent 27e0660 commit 941d203

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

buildSrc/src/main/groovy/multiloader-common.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,12 @@ publishing {
129129
publications {
130130
mavenJava(MavenPublication) {
131131
artifactId project.archivesBaseName
132-
artifact project.tasks.<Jar>findByName(project.name == "fabric" ? "remapJar" : "jar")
133-
artifact project.tasks.<Jar>findByName(project.name == "fabric" ? "remapSourcesJar" : "sourcesJar")
132+
if (project.name == "fabric") {
133+
from components.java
134+
} else {
135+
artifact project.jar
136+
artifact project.sourcesJar
137+
}
134138
}
135139
}
136140
repositories {

0 commit comments

Comments
 (0)