-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathstonecutter.gradle.kts
More file actions
41 lines (34 loc) · 954 Bytes
/
stonecutter.gradle.kts
File metadata and controls
41 lines (34 loc) · 954 Bytes
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
35
36
37
38
39
40
41
plugins {
id("dev.kikugie.stonecutter")
alias(libs.plugins.publishing)
alias(libs.plugins.spotless)
}
stonecutter active "26.2-fabric" /* [SC] DO NOT EDIT */
stonecutter {
tasks {
order("publishMods", versionComparator.thenComparingInt {
if (it.metadata.project.endsWith("fabric")) 1 else 0
})
}
parameters {
val loader = node.project.property("loader.platform")
constants["fabric"] = loader == "fabric"
constants["neoforge"] = loader == "neoforge"
}
}
tasks.named("publishMods") {
group = "build"
}
// Header
spotless {
val licenseHeader = rootProject.file("HEADER")
lineEndings = com.diffplug.spotless.LineEnding.UNIX
java {
licenseHeaderFile(licenseHeader)
target("src/**/*.java", "versions/*/src/**/*.java")
}
kotlin {
licenseHeaderFile(licenseHeader)
target("src/**/*.kt", "versions/*/src/**/*.kt")
}
}