mirror of
https://github.com/TeamMidnightDust/SwordBlocking.git
synced 2025-12-15 14:35:10 +01:00
Mojmap + Stonecutter
This commit is contained in:
25
stonecutter.gradle.kts
Normal file
25
stonecutter.gradle.kts
Normal file
@@ -0,0 +1,25 @@
|
||||
import dev.kikugie.stonecutter.data.tree.struct.ProjectNode
|
||||
|
||||
plugins {
|
||||
id("dev.kikugie.stonecutter")
|
||||
alias(libs.plugins.publishing)
|
||||
}
|
||||
|
||||
stonecutter active "1.21.8-neoforge" /* [SC] DO NOT EDIT */
|
||||
|
||||
stonecutter tasks {
|
||||
val ordering = Comparator
|
||||
.comparing<ProjectNode, _> { stonecutter.parse(it.metadata.version) }
|
||||
.thenComparingInt { if (it.metadata.project.endsWith("fabric")) 1 else 0 }
|
||||
order("publishMods", ordering)
|
||||
}
|
||||
|
||||
stonecutter parameters {
|
||||
val loader = node.project.property("loom.platform")
|
||||
constants["fabric"] = loader == "fabric"
|
||||
constants["neoforge"] = loader == "neoforge"
|
||||
}
|
||||
|
||||
tasks.named("publishMods") {
|
||||
group = "build"
|
||||
}
|
||||
Reference in New Issue
Block a user