Skip to content

Commit

Permalink
Fix incorrect version. Close #6
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlll08 committed Dec 21, 2023
1 parent b8d3f96 commit 1a1cf05
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ version = GMUtils.updatingVersion(Versions.MOD)

tasks.create("postDiscord") {
val taskName = "publishCurseForge"
dependsOn(":fabric:${taskName}", ":forge:${taskName}", ":neoforge:${taskName}")
doLast {
dependsOn(project(":fabric").tasks.getByName(taskName), project(":forge").tasks.getByName(taskName), project(":neoforge").tasks.getByName(taskName))
try {

// Create a new webhook instance for Discord
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ class DefaultPlugin : Plugin<Project> {

@Suppress("UnstableApiUsage")
withType<ProcessResources> {
inputs.property("version", project.version)
val properties = mapOf(
"version" to project.version,
"MOD" to Versions.MOD,
"JAVA" to Versions.JAVA,
"MINECRAFT" to Versions.MINECRAFT,
Expand Down
2 changes: 1 addition & 1 deletion fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"schemaVersion": 1,
"id": "${MODID}",
"name": "${NAME}",
"version": "${MOD}",
"version": "${version}",
"environment": "client",
"icon": "icon.png",
"authors": ["${AUTHOR}"],
Expand Down
2 changes: 1 addition & 1 deletion forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ license = "MIT"
[[mods]]
modId = "${MODID}"
updateJSONURL = "https://updates.blamejared.com/get?n=${MODID}&gv=${MINECRAFT}&ml=forge"
version = "${MOD}"
version = "${version}"
displayName = "${NAME}"
displayURL = "${CURSE_HOMEPAGE}"
authors = "${AUTHOR}"
Expand Down
2 changes: 1 addition & 1 deletion neoforge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ license = "MIT"
[[mods]]
modId = "${MODID}"
updateJSONURL = "https://updates.blamejared.com/get?n=${MODID}&gv=${MINECRAFT}&ml=neoforge"
version = "${MOD}"
version = "${version}"
displayName = "${NAME}"
displayURL = "${CURSE_HOMEPAGE}"
authors = "${AUTHOR}"
Expand Down

0 comments on commit 1a1cf05

Please sign in to comment.