blob: 5786b4a30067b1107e3c024675d215c8362b923c (
plain)
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
|
plugins {
alias(libs.plugins.architectury.loom)
alias(libs.plugins.shadow)
}
architectury {
platformSetupLoomIde()
fabric()
}
loom {
silentMojangMappingsLicense()
accessWidenerPath.set(project(":common").loom.accessWidenerPath)
}
val common by configurations.registering
val shadowCommon by configurations.registering
configurations.compileClasspath.get().extendsFrom(common.get())
configurations["developmentFabric"].extendsFrom(common.get())
val minecraftVersion = libs.versions.minecraft.get()
dependencies {
minecraft(libs.minecraft)
mappings(loom.layered {
val qm = libs.versions.quilt.mappings.get()
if (qm != "0")
mappings("org.quiltmc:quilt-mappings:${libs.versions.minecraft.get()}+build.${libs.versions.quilt.mappings.get()}:intermediary-v2")
officialMojangMappings()
})
modImplementation(libs.fabric.loader)
implementation(libs.twelvemonkeys.imageio.core)
implementation(libs.twelvemonkeys.imageio.webp)
"common"(project(path = ":test-common", configuration = "namedElements")) { isTransitive = false }
implementation(project(path = ":fabric", configuration = "namedElements"))
"common"(project(path = ":common", configuration = "namedElements")) { isTransitive = false }
}
tasks {
shadowJar {
exclude("architectury.common.json")
configurations = listOf(shadowCommon.get())
archiveClassifier.set("dev-shadow")
}
remapJar {
injectAccessWidener.set(true)
inputFile.set(shadowJar.get().archiveFile)
dependsOn(shadowJar)
archiveClassifier.set("fabric-$minecraftVersion")
}
jar {
archiveClassifier.set("dev")
}
}
|