aboutsummaryrefslogtreecommitdiff
path: root/stonecutter.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'stonecutter.gradle.kts')
-rw-r--r--stonecutter.gradle.kts20
1 files changed, 20 insertions, 0 deletions
diff --git a/stonecutter.gradle.kts b/stonecutter.gradle.kts
index d2562de..8aa3e0c 100644
--- a/stonecutter.gradle.kts
+++ b/stonecutter.gradle.kts
@@ -1,8 +1,28 @@
plugins {
id("dev.kikugie.stonecutter")
+ id("dev.architectury.loom") version "1.6.+" apply false
+
+ kotlin("jvm") version "1.9.23" apply false
+
+ id("me.modmuss50.mod-publish-plugin") version "0.5.+" apply false
+ id("org.ajoberstar.grgit") version "5.0.+" apply false
}
stonecutter active "1.20.6-fabric" /* [SC] DO NOT EDIT */
+stonecutter.configureEach {
+ val platform = project.property("loom.platform")
+
+ fun String.propDefined() = project.findProperty(this)?.toString()?.isNotBlank() ?: false
+ consts(listOf(
+ "fabric" to (platform == "fabric"),
+ "forge" to (platform == "forge"),
+ "neoforge" to (platform == "neoforge"),
+ "forge-like" to (platform == "forge" || platform == "neoforge"),
+ "controlify" to "deps.controlify".propDefined(),
+ "mod-menu" to "deps.modMenu".propDefined(),
+ ))
+}
+
stonecutter registerChiseled tasks.register("chiseledBuild", stonecutter.chiseled) {
group = "mod"
ofTask("build")