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

View File

@ -6,9 +6,7 @@ minecraft_version=1.16.1
yarn_mappings=1.16.1+build.21
loader_version=0.9.1+build.205
# Mod Properties
mod_version=1.0.0-SNAPSHOT
maven_group=us.dynmap
archives_base_name=dynmap-fabric
archives_base_name=Dynmap
# Dependencies
# 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

View File

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

View File

@ -6,9 +6,7 @@ minecraft_version=1.16.2
yarn_mappings=1.16.2+build.6
loader_version=0.9.1+build.205
# Mod Properties
mod_version=1.0.0-SNAPSHOT
maven_group=us.dynmap
archives_base_name=dynmap-fabric
archives_base_name=Dynmap
# Dependencies
# 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