-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.gradle.kts
47 lines (39 loc) · 1.14 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
import gg.essential.gradle.util.noServerRunConfigs
plugins {
kotlin("jvm")
id("gg.essential.multi-version")
id("gg.essential.defaults")
}
val modGroup: String by project
val modBaseName: String by project
group = modGroup
base.archivesName.set("$modBaseName-${platform.mcVersionStr}")
repositories {
maven("https://repo.spongepowered.org/repository/maven-public/")
}
loom {
noServerRunConfigs()
runConfigs {
getByName("client") {
programArgs("--tweakClass", "org.spongepowered.asm.launch.MixinTweaker")
}
}
}
val embed by configurations.creating
configurations.implementation.get().extendsFrom(embed)
dependencies {
embed("org.spongepowered:mixin:0.7-SNAPSHOT")
embed("gg.essential:vigilance:306")
embed(modImplementation("gg.essential:universalcraft-1.8.9-forge:369")!!)
}
tasks.jar {
from(embed.files.map { zipTree(it) })
manifest.attributes(
mapOf(
"ModSide" to "CLIENT",
"FMLCorePluginContainsFMLMod" to "Yes, yes it does",
"TweakClass" to "org.spongepowered.asm.launch.MixinTweaker",
"TweakOrder" to "0"
)
)
}