Skip to content

Commit

Permalink
Add displayName to publishOptions in build.gradle
Browse files Browse the repository at this point in the history
The commit adds a displayName property to the publishOptions for each of the fabric, forge, and neoForge projects in the build.gradle file. This displayName includes the root project's mod version and supported version string. It provides a clearer and more descriptive name for each project.
  • Loading branch information
ThePandaOliver committed Jun 30, 2024
1 parent d1a2d51 commit 79222e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,19 @@ publishMods {
def fabricOptions = publishOptions {
file = project(":fabric").remapJar.archiveFile
modLoaders.add("fabric")
displayName = "[Fabric ${rootProject.mod_version}] ${supported_version_str}"
}

def forgeOptions = publishOptions {
file = project(":forge").remapJar.archiveFile
modLoaders.add("forge")
displayName = "[Forge ${rootProject.mod_version}] ${supported_version_str}"
}

def neoForgeOptions = publishOptions {
file = project(":neoforge").remapJar.archiveFile
modLoaders.add("neoforge")
displayName = "[NeoForge ${rootProject.mod_version}] ${supported_version_str}"
}

if (findProject(":fabric") && is_fabric_publishing_enabled) {
Expand Down Expand Up @@ -193,6 +196,8 @@ publishMods {
modLoaders.addAll("fabric", "forge", "neoforge")
file = project(":common").remapJar.archiveFile

displayName = "Version ${rootProject.mod_version} mc${supported_version_str}"

if (findProject(":fabric"))
additionalFiles.from(project(":fabric").remapJar.archiveFile)
if (findProject(":forge"))
Expand Down

0 comments on commit 79222e8

Please sign in to comment.