-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
64 lines (48 loc) · 1.43 KB
/
build.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
plugins {
id("net.minecraftforge.gradle") version "6.0+"
id("org.spongepowered.mixin") version "0.7+"
}
version = "1.0.0"
group = "net.ctrlaltmilk"
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
minecraft {
mappings("official", "1.20.1")
runs {
all {
property("terminal.jline", "true")
property("mixin.env.remapRefMap", "true")
property("mixin.env.refMapRemappingFile", "$projectDir/build/createSrgToMcp/output.srg")
mods.create("handsoffmydata").sources(sourceSets.main.get())
}
register("client") {}
}
}
mixin {
config("handsoffmydata.mixins.json")
add(sourceSets.main.get(), "handsoffmydata.refmap.json")
}
repositories {
flatDir {
dirs("libs")
}
maven("https://cursemaven.com/")
}
dependencies {
minecraft("net.minecraftforge:forge:1.20.1-47.3.22")
implementation(fg.deobf("libs:protection_pixel:1.1.3-forge-1.20.1"))
implementation(fg.deobf("curse.maven:create-328085:5838779"))
implementation(fg.deobf("curse.maven:curios-309927:6058834"))
annotationProcessor("org.spongepowered:mixin:0.8.5:processor")
}
tasks {
processResources {
val props = mapOf(
"version" to project.version
)
inputs.properties(props)
filesMatching("META-INF/mods.toml") {
expand(props)
}
exclude("*.kra") // Original Krita textures
}
}