Downgrade the fabric-resource-loader version to support versions older than 1.16.2 on fabric and add the minotaur plugin to publish to modrinth in the future
This commit is contained in:
parent
09168d1c23
commit
20fc1fd80d
|
@ -1,4 +1,5 @@
|
|||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
import com.modrinth.minotaur.request.VersionType
|
||||
buildscript {
|
||||
dependencies {
|
||||
classpath("com.guardsquare:proguard-gradle:7.1.0-beta2") {
|
||||
|
@ -12,6 +13,7 @@ plugins {
|
|||
id("com.github.johnrengelman.shadow") version "6.1.0" apply false
|
||||
id("architectury-plugin") version "3.0-SNAPSHOT"
|
||||
id("forgified-fabric-loom") version "0.7.0-SNAPSHOT" apply false
|
||||
id("com.modrinth.minotaur") version "1.2.0"
|
||||
}
|
||||
|
||||
group = "fr.username404"
|
||||
|
@ -123,4 +125,30 @@ allprojects {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
val publishToModrinth = register<com.modrinth.minotaur.TaskModrinthUpload>("publishtoModrinth") {
|
||||
val envStr: String? = System.getenv("MODRINTH")
|
||||
onlyIf { envStr != null }
|
||||
versionNumber = version.toString()
|
||||
projectId = "OuGyGg6A"
|
||||
token = envStr
|
||||
addGameVersion(architectury.minecraft.dropLast(2))
|
||||
versionType = VersionType.ALPHA
|
||||
detectLoaders = false
|
||||
versionName = "${project.name} $versionNumber for Minecraft $gameVersions and higher"
|
||||
with(fileTree("$rootDir/shrinkedJars/")) {
|
||||
files.forEach {
|
||||
with(it.name) {
|
||||
when {
|
||||
contains("fabric") -> uploadFile = it
|
||||
contains("forge") -> additionalFiles.add(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
addLoader("fabric"); addLoader("forge")
|
||||
}
|
||||
build.get().finalizedBy(publishToModrinth)
|
||||
}
|
|
@ -30,7 +30,7 @@
|
|||
"depends": {
|
||||
"fabricloader": ">=0.9.3",
|
||||
"fabric-resource-loader-v0": "*",
|
||||
"minecraft": ">=1.16.2"
|
||||
"minecraft": ">=1.16"
|
||||
},
|
||||
"breaks": {
|
||||
"modmenu": "<1.15.0"
|
||||
|
|
|
@ -10,5 +10,5 @@ org.gradle.vfs.watch=true
|
|||
minecraft=1.16.5
|
||||
forge_version=36.1.4
|
||||
fabric_loader_version=0.11.3
|
||||
fabric_resource_loader_version=0.4.2+ca58154a7d
|
||||
fabric_resource_loader_version=0.2.5+059ea8667c
|
||||
modmenu_version=1.16.9
|
Loading…
Reference in New Issue