-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
76 lines (62 loc) · 2.05 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
import dev.architectury.pack200.java.Pack200Adapter
plugins {
java
kotlin("jvm") version ("2.0.20")
id("gg.essential.loom") version ("1.6.20")
id("dev.architectury.architectury-pack200") version ("0.1.3")
}
val modGroup: String by project
val modName: String by project
val modVersion: String by project
group = modGroup
version = modVersion
base.archivesName.set(modName)
loom {
// Uncomment this if you want to use the essential library
/*
runConfigs.getByName("client") {
programArgs("--tweakClass", "gg.essential.loader.stage0.EssentialSetupTweaker")
}
*/
forge.pack200Provider.set(Pack200Adapter())
}
repositories {
maven("https://repo.essential.gg/repository/maven-public")
}
//Creates a configuration called `embed` to declare dependencies
val embed: Configuration by configurations.creating
configurations.implementation.get().extendsFrom(embed)
dependencies {
// Dependencies required for loom to set up the development environment
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")
// Uncomment the following lines if you want to use the essential library
// embed("gg.essential:loader-launchwrapper:1.2.3")
// compileOnly("gg.essential:essential-1.8.9-forge:17141+gd6f4cfd3a8")
}
tasks {
processResources {
inputs.property("version", project.version)
filesMatching("mcmod.info") {
expand("version" to project.version)
}
}
jar {
// Includes dependencies added with 'include' in the final .jar mod file
from(embed.files.map { zipTree(it) })
// Uncomment this if you want to use the essential library
/*
manifest.attributes(
mapOf(
"ModSide" to "CLIENT",
"TweakClass" to "gg.essential.loader.stage0.EssentialSetupTweaker"
)
)
*/
}
withType<JavaCompile> {
options.release.set(8)
options.encoding = "UTF-8"
}
}