|
|
|
@ -1,17 +1,17 @@
|
|
|
|
|
import com.modrinth.minotaur.dependencies.DependencyType
|
|
|
|
|
import com.modrinth.minotaur.dependencies.ModDependency
|
|
|
|
|
import org.gradle.configurationcache.extensions.capitalized
|
|
|
|
|
import dev.deftu.gradle.tools.minecraft.CurseRelation
|
|
|
|
|
import dev.deftu.gradle.tools.minecraft.CurseRelationType
|
|
|
|
|
import xyz.deftu.gradle.tools.minecraft.CurseRelation
|
|
|
|
|
import xyz.deftu.gradle.tools.minecraft.CurseRelationType
|
|
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
|
java
|
|
|
|
|
kotlin("jvm")
|
|
|
|
|
id("dev.deftu.gradle.multiversion")
|
|
|
|
|
id("dev.deftu.gradle.tools")
|
|
|
|
|
id("dev.deftu.gradle.tools.minecraft.loom")
|
|
|
|
|
id("dev.deftu.gradle.tools.shadow")
|
|
|
|
|
id("dev.deftu.gradle.tools.minecraft.releases")
|
|
|
|
|
id("xyz.deftu.gradle.multiversion")
|
|
|
|
|
id("xyz.deftu.gradle.tools")
|
|
|
|
|
id("xyz.deftu.gradle.tools.minecraft.loom")
|
|
|
|
|
id("xyz.deftu.gradle.tools.shadow")
|
|
|
|
|
id("xyz.deftu.gradle.tools.minecraft.releases")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val bundle by configurations.creating {
|
|
|
|
@ -35,11 +35,13 @@ java {
|
|
|
|
|
|
|
|
|
|
toolkitReleases {
|
|
|
|
|
gameVersions.set(when (mcData.version) {
|
|
|
|
|
12004 -> listOf("1.20.4")
|
|
|
|
|
11904 -> listOf("1.19", "1.19.1", "1.19.2", "1.19.3", "1.19.4", "1.20", "1.20.1")
|
|
|
|
|
11802 -> listOf("1.18", "1.18.1", "1.18.2")
|
|
|
|
|
else -> listOf()
|
|
|
|
|
})
|
|
|
|
|
releaseName.set("[${when (mcData.version) {
|
|
|
|
|
12004 -> "1.20.4"
|
|
|
|
|
11904 -> "1.19-"
|
|
|
|
|
11802 -> "1.18.x"
|
|
|
|
|
else -> mcData.versionStr
|
|
|
|
|
}}] [${mcData.loader.name.capitalized()}] ${modData.version}")
|
|
|
|
|
if (mcData.isFabric) {
|
|
|
|
@ -95,7 +97,8 @@ dependencies {
|
|
|
|
|
modImplementation(
|
|
|
|
|
"net.fabricmc.fabric-api:fabric-api:${
|
|
|
|
|
when (mcData.version) {
|
|
|
|
|
12004 -> "0.94.0+1.20.4"
|
|
|
|
|
11904 -> "0.78.0+1.19.4"
|
|
|
|
|
11802 -> "0.76.0+1.18.2"
|
|
|
|
|
else -> throw IllegalStateException("Invalid MC version: ${mcData.version}")
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|