Skip to content

Commit

Permalink
fix dev jar
Browse files Browse the repository at this point in the history
  • Loading branch information
MORIMORI0317 committed Jul 20, 2021
1 parent e755b95 commit 18e5084
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@ java {

withSourcesJar()
}

jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
}

publishing {
publications {
mavenJava(MavenPublication) {
Expand All @@ -84,7 +82,7 @@ if (System.getenv('curesforgeapikey') != null && "${curesfg_id}" != "0") {
changelog = ""
releaseType = "release"
addGameVersion "${minecraft_version}"
mainArtifact(jar) {
mainArtifact(file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar")) {
displayName = "${archives_base_name}-${minecraft_version}-${mod_version}-Fabric"
relations {
embeddedLibrary 'cloth-config'
Expand All @@ -100,7 +98,7 @@ if (System.getenv('modrinthapikey') != null && "${modrinth_id}" != "0") {
projectId = "${modrinth_id}"
versionName = "${archives_base_name}-${minecraft_version}-${mod_version}-Fabric"
versionNumber = "${minecraft_version}-${mod_version}-Fabric"
uploadFile = jar
uploadFile = file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar")
addGameVersion("${minecraft_version}")
addLoader('fabric')
}
Expand Down

0 comments on commit 18e5084

Please sign in to comment.