-
Notifications
You must be signed in to change notification settings - Fork 0
/
stonecutter.gradle.kts
31 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
plugins {
id("dev.kikugie.stonecutter")
id("fabric-loom") version "1.6-SNAPSHOT" apply false
id("me.modmuss50.mod-publish-plugin") version "0.7.+" apply false
}
stonecutter active "1.20.2" /* [SC] DO NOT EDIT */
// Builds every version into `build/libs/{mod.version}/`
stonecutter registerChiseled tasks.register("chiseledBuild", stonecutter.chiseled) {
group = "project"
ofTask("buildAndCollect")
}
// Publishes every version
stonecutter registerChiseled tasks.register("chiseledPublishMods", stonecutter.chiseled) {
group = "project"
ofTask("publishMods")
}
stonecutter configureEach {
/*
See src/main/java/com/example/TemplateMod.java
and https://stonecutter.kikugie.dev/
*/
// Swaps replace the scope with a predefined value
swap("mod_version", "\"${property("mod.version")}\";")
// Dependencies add targets to check versions against
// Using `project.property()` in this block gets the versioned property
dependency("fapi", project.property("deps.fabric_api").toString())
dependency("yacl", project.property("deps.yacl").toString())
}