Skip to content

Commit

Permalink
chore: change modrinth version formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Syrent committed Jun 4, 2024
1 parent b71420b commit af1c987
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ for (module in modrinthModules) {

token.set(modrinthApiKey)
projectId.set("${property("modrinthProjectID")}")
versionNumber.set((if (isRelease) versionString else publishVersion.replace("-build.", "-b")) + "-${module.name.lowercase()}")
versionNumber.set((if (isRelease) versionString else publishVersion.replace("-build.", "-b").replace("-SNAPSHOT", "")) + "-${module.id.lowercase()}")
versionType.set(System.getenv("MODRINTH_BUILD_CHANNEL") ?: "beta")
uploadFile.set(project(":sayanvanish-bukkit").tasks.shadowJar.flatMap { it.archiveFile })
when (module) {
Expand Down
10 changes: 5 additions & 5 deletions buildSrc/src/main/kotlin/org/sayandev/Module.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.sayandev

enum class Module {
API,
BUKKIT,
VELOCITY,
BUNGEECORD
enum class Module(val id: String) {
API("api"),
BUKKIT("bukkit"),
VELOCITY("velocity"),
BUNGEECORD("bungee")
}

0 comments on commit af1c987

Please sign in to comment.