Skip to content

Commit

Permalink
Fixes build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
toxicity188 committed Nov 2, 2024
1 parent 5801ca7 commit a7aec28
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ fun Project.modrinthPublish(depend: Jar, additionalJar: List<Jar>, loadersList:
projectId = "betterhud2"
versionType = "alpha"
changelog = System.getenv("COMMIT_MESSAGE")
versionName = "${project.version}-${depend.archiveClassifier}"
versionName = "BetterHud ${project.version} for ${depend.archiveClassifier.get()}"
versionNumber = project.version as String
uploadFile.set(depend.archiveFile)
additionalFiles = additionalJar.map {
Expand Down Expand Up @@ -447,15 +447,16 @@ fabricBootstrap.modrinthPublish(
)

tasks.create("modrinthPublish") {
dependsOn(
val list = mutableListOf(
tasks.shadowJar,
sourceJar,
dokkaJar,
tasks.modrinthSyncBody
)
bootstrap.forEach {
dependsOn(it.tasks.modrinth)
list.add(it.tasks.modrinth)
}
dependsOn(*list.toTypedArray())
}

hangarPublish {
Expand Down

0 comments on commit a7aec28

Please sign in to comment.