fix Maven publishing, .gitignore

This commit is contained in:
Adrian Siekierka 2019-04-24 01:03:53 +02:00
parent 26bd1b52fa
commit da9cebd67f
2 changed files with 3 additions and 3 deletions

1
.gitignore vendored
View file

@ -3,6 +3,7 @@
# Subprojects
!/fabric-*
/fabric-*/.gradle
/fabric-*/build
# Folders

View file

@ -95,7 +95,6 @@ subprojects {
task remapMavenJar(type: net.fabricmc.loom.task.RemapJar, dependsOn: remapJar) {
afterEvaluate {
println("${project.buildDir}/libs/${archivesBaseName}-${version}-dev.jar")
jar = file("${project.buildDir}/libs/${archivesBaseName}-${version}-dev.jar")
destination = file("${project.buildDir}/libs/${archivesBaseName}-${version}-maven.jar")
nestJar = false
@ -157,8 +156,8 @@ publishing {
maven(MavenPublication) {
groupId "net.fabricmc"
artifactId "fabric"
artifact (jar) {
builtBy remapJar
artifact (file("${project.buildDir}/libs/${archivesBaseName}-${version}-maven.jar")) {
builtBy remapMavenJar
}
artifact (sourcesJar) {
builtBy remapSourcesJar