diff options
author | isXander <xander@isxander.dev> | 2024-06-11 23:13:49 +0100 |
---|---|---|
committer | isXander <xander@isxander.dev> | 2024-06-11 23:13:57 +0100 |
commit | 305718e163f91802a4bc1c1ed6540febb2ce204e (patch) | |
tree | d72fe8b95dab1ef89f67b13a19f8c06fdb582c28 /stonecutter.gradle.kts | |
parent | 65b4f7ba8374bbaebc6a431f8347ffc3e8afdced (diff) | |
download | YetAnotherConfigLib-305718e163f91802a4bc1c1ed6540febb2ce204e.tar.gz YetAnotherConfigLib-305718e163f91802a4bc1c1ed6540febb2ce204e.tar.bz2 YetAnotherConfigLib-305718e163f91802a4bc1c1ed6540febb2ce204e.zip |
codec config and rewritten kotlin dsl
Diffstat (limited to 'stonecutter.gradle.kts')
-rw-r--r-- | stonecutter.gradle.kts | 20 |
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") |