-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
42 lines (38 loc) · 1.5 KB
/
build.gradle.kts
File metadata and controls
42 lines (38 loc) · 1.5 KB
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
plugins {
id("toni.blahaj")
}
blahaj {
config { }
setup {
txnilib("1.0.23")
forgeConfig()
deps.modImplementation("com.github.ben-manes.caffeine:caffeine:3.1.2")
deps.compileOnly("org.projectlombok:lombok:1.18.34")
deps.annotationProcessor("org.projectlombok:lombok:1.18.34")
when(mod.projectName) {
"1.21.1-fabric" -> {
deps.modImplementation(modrinth("caxton", "0.6.0-alpha.2+1.21.1-FABRIC"))
deps.modImplementation(deps.include("com.github.Chocohead:Fabric-ASM:v2.3") {
exclude(group = "net.fabricmc", module = "fabric-loader")
})
}
"1.21.1-neoforge" -> {
deps.modImplementation(modrinth("caxton", "0.6.0-alpha.2+1.21.1-NEOFORGE"))
deps.minecraftRuntimeLibraries("com.github.ben-manes.caffeine:caffeine:3.1.2")
}
"1.20.1-fabric" -> {
deps.modImplementation(modrinth("caxton", "0.6.0-alpha.2.1+1.20.1-FABRIC"))
deps.include(deps.implementation(deps.annotationProcessor("io.github.llamalad7:mixinextras-fabric:0.4.1")!!)!!)
deps.modImplementation(deps.include("com.github.Chocohead:Fabric-ASM:v2.3") {
exclude(group = "net.fabricmc", module = "fabric-loader")
})
}
"1.20.1-forge" -> {
deps.modImplementation(modrinth("caxton", "0.6.0-alpha.2.1+1.20.1-FORGE"))
deps.minecraftRuntimeLibraries("com.github.ben-manes.caffeine:caffeine:3.1.2")
deps.compileOnly(deps.annotationProcessor("io.github.llamalad7:mixinextras-common:0.4.1")!!)
deps.implementation(deps.include("io.github.llamalad7:mixinextras-forge:0.4.1")!!)
}
}
}
}