blob: 32622d9eff3b0f833557d8c8ded963f44d1488fe (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
import org.gradle.kotlin.dsl.libs
plugins {
alias(libs.plugins.architectury.loom)
alias(libs.plugins.shadow)
}
architectury {
platformSetupLoomIde()
neoForge()
}
loom {
silentMojangMappingsLicense()
accessWidenerPath.set(project(":common").loom.accessWidenerPath)
neoForge {
}
mods {
maybeCreate("forge").apply {
sourceSet(project(":neoforge").sourceSets.main.get())
}
}
}
val common by configurations.registering
val shadowCommon by configurations.registering
configurations.compileClasspath.get().extendsFrom(common.get())
configurations["developmentNeoForge"].extendsFrom(common.get())
val minecraftVersion: String = libs.versions.minecraft.get()
dependencies {
minecraft(libs.minecraft)
mappings(loom.layered {
officialMojangMappings()
parchment(libs.parchment)
})
neoForge(libs.neoforge)
implementation(libs.twelvemonkeys.imageio.core)
forgeRuntimeLibrary(libs.twelvemonkeys.imageio.core)
implementation(libs.twelvemonkeys.imageio.webp)
forgeRuntimeLibrary(libs.twelvemonkeys.imageio.webp)
implementation(libs.bundles.quilt.parsers)
forgeRuntimeLibrary(libs.bundles.quilt.parsers)
"common"(project(path = ":test-common", configuration = "namedElements")) { isTransitive = false }
implementation(project(path = ":neoforge", configuration = "namedElements")) { isTransitive = false }
"common"(project(path = ":common", configuration = "namedElements")) { isTransitive = false }
}
tasks {
shadowJar {
exclude("fabric.mod.json")
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("neoforge-$minecraftVersion")
}
jar {
archiveClassifier.set("dev")
}
}
|