set correct artifact paths

This commit is contained in:
Pierre Kisters 2020-08-16 20:57:36 +02:00
parent db406e2f5d
commit 758fda0e54
4 changed files with 22 additions and 48 deletions

View File

@ -14,8 +14,8 @@ sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8
archivesBaseName = project.archives_base_name archivesBaseName = project.archives_base_name
version = project.mod_version + "+" + project.minecraft_version version = parent.version
group = project.maven_group group = parent.group
configurations { configurations {
shadow shadow
@ -75,23 +75,12 @@ jar {
} }
} }
// configure the maven publication remapJar {
publishing { archiveName = "${archivesBaseName}-${version}-fabric-${project.minecraft_version}.jar"
publications { destinationDir = file '../target'
mavenJava(MavenPublication) { }
// add all the jars that should be included when publishing to maven
artifact(remapJar) { remapJar.doLast {
builtBy remapJar task ->
} ant.checksum file: task.archivePath
artifact(sourcesJar) {
builtBy remapSourcesJar
}
}
}
// select the repositories you want to publish to
repositories {
// uncomment to publish to the local maven
// mavenLocal()
}
} }

View File

@ -6,9 +6,7 @@ minecraft_version=1.16.1
yarn_mappings=1.16.1+build.21 yarn_mappings=1.16.1+build.21
loader_version=0.9.1+build.205 loader_version=0.9.1+build.205
# Mod Properties # Mod Properties
mod_version=1.0.0-SNAPSHOT archives_base_name=Dynmap
maven_group=us.dynmap
archives_base_name=dynmap-fabric
# Dependencies # Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_version=0.17.0+build.386-1.16.1 fabric_version=0.17.0+build.386-1.16.1

View File

@ -14,8 +14,8 @@ sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8
archivesBaseName = project.archives_base_name archivesBaseName = project.archives_base_name
version = project.mod_version + "+" + project.minecraft_version version = parent.version
group = project.maven_group group = parent.group
configurations { configurations {
shadow shadow
@ -75,23 +75,12 @@ jar {
} }
} }
// configure the maven publication remapJar {
publishing { archiveName = "${archivesBaseName}-${version}-fabric-${project.minecraft_version}.jar"
publications { destinationDir = file '../target'
mavenJava(MavenPublication) { }
// add all the jars that should be included when publishing to maven
artifact(remapJar) { remapJar.doLast {
builtBy remapJar task ->
} ant.checksum file: task.archivePath
artifact(sourcesJar) {
builtBy remapSourcesJar
}
}
}
// select the repositories you want to publish to
repositories {
// uncomment to publish to the local maven
// mavenLocal()
}
} }

View File

@ -6,9 +6,7 @@ minecraft_version=1.16.2
yarn_mappings=1.16.2+build.6 yarn_mappings=1.16.2+build.6
loader_version=0.9.1+build.205 loader_version=0.9.1+build.205
# Mod Properties # Mod Properties
mod_version=1.0.0-SNAPSHOT archives_base_name=Dynmap
maven_group=us.dynmap
archives_base_name=dynmap-fabric
# Dependencies # Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_version=0.17.2+build.396-1.16 fabric_version=0.17.2+build.396-1.16