-
Notifications
You must be signed in to change notification settings - Fork 30
/
build.gradle.kts
53 lines (49 loc) · 1.55 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("xaeroplus-all.conventions")
idea
}
val minecraft_version: String by gradle.extra
architectury {
minecraft = minecraft_version
}
tasks {
register("printWorldMapVersionFabric") {
doLast {
println(gradle.extra.get("worldmap_version_fabric"))
}
outputs.upToDateWhen { false }
}
register("printMinimapVersionFabric") {
doLast {
println(gradle.extra.get("minimap_version_fabric"))
}
outputs.upToDateWhen { false }
}
register("printWorldMapVersionForge") {
doLast {
println(gradle.extra.get("worldmap_version_forge"))
}
outputs.upToDateWhen { false }
}
register("printMinimapVersionForge") {
doLast {
println(gradle.extra.get("minimap_version_forge"))
}
outputs.upToDateWhen { false }
}
register("printXaeroPlusVersion") {
doLast {
println(version)
}
outputs.upToDateWhen { false }
}
}
idea {
module {
excludeDirs.add(project.layout.buildDirectory.asFile.get())
excludeDirs.addAll(subprojects.map { p -> p.layout.buildDirectory.asFile.get() }.toList())
excludeDirs.addAll(subprojects.map { p -> p.layout.projectDirectory }.map { d -> d.asFile.resolve("run") }.toList())
val forgeRemapDir = subprojects.first { p -> p.name == "common" }.layout.buildDirectory.dir("remappedSources/forge").get().asFile
excludeDirs.addAll(listOf(forgeRemapDir.resolve("java"), forgeRemapDir.resolve("resources")))
}
}