-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle.kts
52 lines (43 loc) · 1.29 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
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}")
loom {
noServerRunConfigs()
mixin {
defaultRefmapName.set("mixins.scrollabletooltips.refmap.json")
}
launchConfigs {
getByName("client") {
arg("--tweakClass", "gg.essential.loader.stage0.EssentialSetupTweaker")
arg("--mixin", "mixins.scrollabletooltips.json")
}
}
}
repositories {
maven("https://repo.spongepowered.org/repository/maven-public/")
}
val embed by configurations.creating
configurations.implementation.get().extendsFrom(embed)
dependencies {
compileOnly("gg.essential:essential-$platform:2666")
embed("gg.essential:loader-launchwrapper:1.1.3")
compileOnly("org.spongepowered:mixin:0.8.5-SNAPSHOT")
}
tasks.jar {
from(embed.files.map { zipTree(it) })
manifest.attributes(
mapOf(
"ModSide" to "CLIENT",
"FMLCorePluginContainsFMLMod" to "Yes, yes it does",
"TweakClass" to "gg.essential.loader.stage0.EssentialSetupTweaker",
"TweakOrder" to "0"
)
)
}