Skip to content

Commit

Permalink
build: attempt fabric publishing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bconlon1 committed Dec 3, 2024
1 parent 27e0660 commit 941d203
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions buildSrc/src/main/groovy/multiloader-common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,12 @@ publishing {
publications {
mavenJava(MavenPublication) {
artifactId project.archivesBaseName
artifact project.tasks.<Jar>findByName(project.name == "fabric" ? "remapJar" : "jar")
artifact project.tasks.<Jar>findByName(project.name == "fabric" ? "remapSourcesJar" : "sourcesJar")
if (project.name == "fabric") {
from components.java
} else {
artifact project.jar
artifact project.sourcesJar
}
}
}
repositories {
Expand Down

0 comments on commit 941d203

Please sign in to comment.