Skip to content

Commit

Permalink
build: add platform id to modrinth version
Browse files Browse the repository at this point in the history
  • Loading branch information
Syrent committed Jun 2, 2024
1 parent 3386258 commit 905e287
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ allprojects {
plugins.apply("maven-publish")
plugins.apply("kotlin")
plugins.apply("io.github.goooler.shadow")
plugins.apply("com.modrinth.minotaur")

repositories {
mavenCentral()
Expand Down Expand Up @@ -206,7 +207,7 @@ for (module in modrinthModules) {

token.set(modrinthApiKey)
projectId.set("${property("modrinthProjectID")}")
versionNumber.set(if (isRelease) versionString else publishVersion)
versionNumber.set((if (isRelease) versionString else publishVersion) + "-${module.name.lowercase()}")
versionType.set(System.getenv("MODRINTH_BUILD_CHANNEL") ?: "beta")
when (module) {
Module.BUKKIT -> {
Expand Down

0 comments on commit 905e287

Please sign in to comment.