Skip to content

Commit

Permalink
stabilized base.archivesName unless jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Oct 13, 2023
1 parent 426a461 commit 0882cd5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,15 @@ if (System.getenv("BUILD_RELEASE") != "true") {
}
String fullModVersion = project.mod_version + versionSuffix

version = 'v' + fullModVersion
group = project.maven_group
base.archivesName = project.archives_base_name + '-mc' + project.minecraft_version
if (System.getenv("JITPACK") == "true") {
// move mc version into archivesBaseName, so jitpack will be able to organize archives from multiple subprojects correctly
base.archivesName = project.archives_base_name + '-mc' + project.minecraft_version
version = 'v' + fullModVersion
} else {
base.archivesName = project.archives_base_name
version = 'mc' + project.minecraft_version + '-v' + fullModVersion
}

// See https://youtrack.jetbrains.com/issue/IDEA-296490
// if IDEA complains about "Cannot resolve resource filtering of MatchingCopyAction" and you want to know why
Expand Down

0 comments on commit 0882cd5

Please sign in to comment.