update maven output to fix pushing to same location

This commit is contained in:
Flemmli97 2022-11-25 22:36:13 +01:00
parent 767ac056e7
commit b1e433abb7
2 changed files with 8 additions and 2 deletions

View File

@ -90,6 +90,7 @@ shadowJar {
remapJar {
input.set shadowJar.archiveFile
dependsOn shadowJar
classifier "fabric"
}
jar {
@ -100,7 +101,7 @@ sourcesJar {
def commonSources = project(":common").sourcesJar
dependsOn commonSources
from commonSources.archiveFile.map { zipTree(it) }
classifier "sources"
classifier "fabric-sources"
}
components.java {
@ -134,9 +135,11 @@ publishing {
mavenJava(MavenPublication) {
// add all the jars that should be included when publishing to maven
artifact(remapJar) {
classifier null
builtBy remapJar
}
artifact(sourcesJar) {
classifier "sources"
builtBy remapSourcesJar
}
artifact(remapApiJar)

View File

@ -61,6 +61,7 @@ shadowJar {
remapJar {
input.set shadowJar.archiveFile
dependsOn shadowJar
classifier "forge"
}
jar {
@ -71,7 +72,7 @@ sourcesJar {
def commonSources = project(":common").sourcesJar
dependsOn commonSources
from commonSources.archiveFile.map { zipTree(it) }
classifier "sources"
classifier "forge-sources"
}
components.java {
@ -98,9 +99,11 @@ publishing {
mavenJava(MavenPublication) {
// add all the jars that should be included when publishing to maven
artifact(remapJar) {
classifier null
builtBy remapJar
}
artifact(sourcesJar) {
classifier "sources"
builtBy remapSourcesJar
}
artifact(remapApiJar)