Skip to content

Commit

Permalink
Add 1.20 & 1.20.1 versions of Mod Menu and fix MC releases JAR error
Browse files Browse the repository at this point in the history
  • Loading branch information
Deftu committed Aug 24, 2023
1 parent 5b1b162 commit 8eedb9a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
kotlin("jvm") version("1.6.21")
`kotlin-dsl`
val dgt = "1.18.5+"
val dgt = "1.18.7+"
id("xyz.deftu.gradle.tools.repo") version(dgt)
id("xyz.deftu.gradle.tools.configure") version(dgt)
id("xyz.deftu.gradle.tools.maven-publishing") version(dgt)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ kotlin.code.style=official

# Project properties
project.name=gradle-toolkit
project.version=1.18.5
project.version=1.18.7
project.group=xyz.deftu.gradle
2 changes: 2 additions & 0 deletions src/main/kotlin/xyz/deftu/gradle/GameInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ object GameInfo {
)

private val modMenuVersions: Map<Int, Pair<String, String>> = mapOf(
1_20_01 to ("com.terraformersmc:modmenu:" to "7.1.0"),
1_20_00 to ("com.terraformersmc:modmenu:" to "7.0.1"),
1_19_04 to ("com.terraformersmc:modmenu:" to "6.2.2"),
1_19_03 to ("com.terraformersmc:modmenu:" to "5.0.2"),
1_19_02 to ("com.terraformersmc:modmenu:" to "4.1.2"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fun ReleasingExtension.getReleaseVersion(): String {
return "${version.getOrElse(modData.version)}${suffix}"
}

fun ReleasingExtension.getUploadFile() = file.getOrElse(tasks.named<Jar>("remapJar").get())
fun ReleasingExtension.getUploadFile() = file.getOrElse(tasks.named<org.gradle.jvm.tasks.Jar>("remapJar").get())

fun ReleasingExtension.getGameVersions() = gameVersions.getOrElse(listOf(mcData.versionStr))
fun ReleasingExtension.getLoaders(capitalized: Boolean) = loaders.getOrElse(listOf(mcData.loader.name)).map { loader ->
Expand Down

0 comments on commit 8eedb9a

Please sign in to comment.