generated from Debuggingss/ExampleMod
-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle.kts
78 lines (64 loc) · 2 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import dev.architectury.pack200.java.Pack200Adapter
plugins {
kotlin("jvm")
id("gg.essential.loom")
id("io.github.juuxel.loom-quiltflower")
id("dev.architectury.architectury-pack200")
id("com.github.johnrengelman.shadow")
}
group = "best.spaghetcodes"
version = "0.1.0"
loom {
runConfigs {
named("client") {
ideConfigGenerated(true)
}
}
launchConfigs {
getByName("client") {
arg("--tweakClass", "gg.essential.loader.stage0.EssentialSetupTweaker")
arg("--mixin", "mixins.duckdueller.json")
}
}
forge {
pack200Provider.set(Pack200Adapter())
mixinConfig("mixins.duckdueller.json")
}
}
val embed: Configuration by configurations.creating
configurations.implementation.get().extendsFrom(embed)
dependencies {
minecraft("com.mojang:minecraft:1.8.9")
mappings("de.oceanlabs.mcp:mcp_stable:22-1.8.9")
forge("net.minecraftforge:forge:1.8.9-11.15.1.2318-1.8.9")
compileOnly("gg.essential:essential-1.8.9-forge:4955+g395141645")
embed("gg.essential:loader-launchwrapper:1.1.3")
compileOnly("org.spongepowered:mixin:0.8.5-SNAPSHOT")
annotationProcessor("org.spongepowered:mixin:0.8.5-SNAPSHOT:processor")
}
repositories {
maven("https://repo.essential.gg/repository/maven-public")
maven("https://repo.spongepowered.org/repository/maven-public")
}
tasks {
jar {
from(embed.files.map { zipTree(it) })
manifest.attributes(
mapOf(
"ModSide" to "CLIENT",
"TweakClass" to "gg.essential.loader.stage0.EssentialSetupTweaker",
"MixinConfigs" to "mixins.duckdueller.json"
)
)
}
processResources {
inputs.property("version", project.version)
inputs.property("mcversion", "1.8.9")
filesMatching("mcmod.info") {
expand("version" to project.version, "mcversion" to "1.8.9")
}
}
withType<JavaCompile> {
options.release.set(8)
}
}