generated from Bawnorton/BawnortonModTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stonecutter.gradle.kts
34 lines (28 loc) · 1.08 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
33
34
plugins {
id("dev.kikugie.stonecutter")
}
stonecutter active "1.21.3-fabric-yarn" /* [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("chiseledPublishMavenLocal", stonecutter.chiseled) {
group = "publishing"
ofTask("publishMavenPublicationToMavenLocal")
}
stonecutter registerChiseled tasks.register("chiseledPublishMavenRemote", stonecutter.chiseled) {
group = "publishing"
ofTask("publishMavenPublicationToBawnortonRepository")
}
stonecutter configureEach {
val current = project.property("loom.platform")
val platforms = listOf("fabric", "neoforge").map { it to (it == current) }
consts(platforms)
val currentMappings = project.property("mappings")
val mappings = listOf("yarn", "mojmap").map { it to (it == currentMappings) }
consts(mappings)
}