forked from Jorbon/cool_elytra
-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
stonecutter.gradle.kts
32 lines (28 loc) · 1.02 KB
/
stonecutter.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
plugins {
id("dev.kikugie.stonecutter")
kotlin("jvm") version "2.0.0" apply false
kotlin("plugin.serialization") version "2.0.0" apply false
id("co.uzzu.dotenv.gradle") version "4.0.0"
id("dev.architectury.loom") version "1.7-SNAPSHOT" apply false
id("me.modmuss50.mod-publish-plugin") version "0.5.+" apply false
}
stonecutter active "1.21-fabric" /* [SC] DO NOT EDIT */
stonecutter registerChiseled tasks.register("chiseledBuildAndCollect", stonecutter.chiseled) {
group = "project"
ofTask("buildAndCollect")
}
stonecutter registerChiseled tasks.register("chiseledPublishMods", stonecutter.chiseled) {
group = "project"
ofTask("publishMods")
}
stonecutter registerChiseled tasks.register("chiseledPublish", stonecutter.chiseled) {
group = "project"
ofTask("publish")
}
stonecutter configureEach {
val data = current.project.split('-')
val platforms = listOf("fabric", "forge", "neoforge")
.map { it to (it == data[1]) }
consts(platforms)
swap("mc", "\"${data[0]}\"")
}