-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
53 lines (43 loc) · 1.24 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
plugins {
id("roundalib") version "0.4.0"
}
repositories {
maven("https://jitpack.io")
}
dependencies {
implementation("io.github.llamalad7:mixinextras-fabric:0.3.2")
annotationProcessor("io.github.llamalad7:mixinextras-fabric:0.3.2")
include("io.github.llamalad7:mixinextras-fabric:0.3.2")
}
sourceSets {
main {
resources {
srcDir("src/main/generated")
exclude(".cache/**")
}
}
}
loom {
runs {
register("datagen") {
tasks.importMixins.get().enabled = false
tasks.mergeLanguageFiles.get().enabled = false
server()
name("Data Generation")
runDir("build/datagen")
vmArg("-Dfabric-api.datagen")
vmArg("-Dfabric-api.datagen.output-dir=${file("src/main/generated")}")
vmArg("-Dfabric-api.datagen.modid=${project.property("mod_id").toString()}")
}
register("datagenClient") {
tasks.importMixins.get().enabled = false
tasks.mergeLanguageFiles.get().enabled = false
client()
name("Data Generation Client")
runDir("build/datagen")
vmArg("-Dfabric-api.datagen")
vmArg("-Dfabric-api.datagen.output-dir=${file("src/main/generated")}")
vmArg("-Dfabric-api.datagen.modid=${project.property("mod_id").toString()}")
}
}
}