-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
49 lines (43 loc) · 1.47 KB
/
build.gradle
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
plugins {
id("multiloader-loader")
id("fabric-loom")
}
dependencies {
minecraft("com.mojang:minecraft:${minecraft_version}")
mappings loom.layered {
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-${parchment_minecraft_version}:${parchment_version}@zip")
}
// Fabric loader and API
modImplementation("net.fabricmc:fabric-loader:${fabric_loader_version}")
modImplementation("net.fabricmc.fabric-api:fabric-api:${fabric_api_version}")
// JiJ MixinExtras if required to be newer than minimum loader-provided version
// include(implementation(annotationProcessor("io.github.llamalad7:mixinextras-fabric:${mixinextras_version}")))
// Modmenu
modImplementation("maven.modrinth:mOgUt4GM:${modmenu_version}")
// Cloth Config API
modApi("me.shedaniel.cloth:cloth-config-fabric:${clothconfig_version}") {
exclude(group: "net.fabricmc.fabric-api")
}
}
loom {
def aw = project(":common").file("src/main/resources/${mod_id}.accesswidener")
if (aw.exists()) accessWidenerPath.set(aw)
mixin {
defaultRefmapName.set("${mod_id}.refmap.json")
}
runs {
client {
client()
setConfigName("Fabric Client")
ideConfigGenerated(true)
runDir("runs/client")
}
server {
server()
setConfigName("Fabric Server")
ideConfigGenerated(true)
runDir("runs/server")
}
}
}