-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
99 lines (82 loc) · 2.71 KB
/
build.gradle.kts
File metadata and controls
99 lines (82 loc) · 2.71 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
plugins {
id("java")
id("cc.polyfrost.loom") version "0.10.0.5"
id("dev.architectury.architectury-pack200") version "0.1.3"
id("com.github.johnrengelman.shadow") version "8.1.1"
id("net.kyori.blossom") version "1.3.1"
}
group = "de.tomjuri"
version = "1.0.0"
repositories {
mavenCentral()
maven("https://repo.polyfrost.cc/releases")
maven("https://repo.spongepowered.org/repository/maven-public")
maven("https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1")
}
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("cc.polyfrost:oneconfig-1.8.9-forge:0.2.0-alpha+")
embed("cc.polyfrost:oneconfig-wrapper-launchwrapper:1.0.0-beta+")
compileOnly("org.spongepowered:mixin:0.8.5-SNAPSHOT")
annotationProcessor("org.spongepowered:mixin:0.8.5-SNAPSHOT:processor")
modRuntimeOnly("me.djtheredstoner:DevAuth-forge-legacy:1.1.2")
}
blossom {
replaceToken("%%VERSION%%", version)
}
loom {
runConfigs {
named("client") {
ideConfigGenerated(true)
}
}
launchConfigs {
getByName("client") {
arg("--tweakClass", "cc.polyfrost.oneconfig.loader.stage0.LaunchWrapperTweaker")
property("devauth.enabled", "true")
}
}
forge {
pack200Provider.set(dev.architectury.pack200.java.Pack200Adapter())
mixinConfig("mixins.examplemod.json")
}
}
tasks {
jar {
manifest.attributes(
mapOf(
"ModSide" to "CLIENT",
"TweakOrder" to "0",
"ForceLoadAsMod" to true,
"TweakClass" to "cc.polyfrost.oneconfig.loader.stage0.LaunchWrapperTweaker",
"MixinConfigs" to "mixins.examplemod.json"
)
)
dependsOn(shadowJar)
}
remapJar {
input.set(shadowJar.get().archiveFile)
archiveClassifier.set("")
}
shadowJar {
isEnableRelocation = true
relocationPrefix = "de.tomjuri.examplemod.relocate"
relocate("cc.polyfrost.oneconfig", "cc.polyfrost.oneconfig")
configurations = listOf(embed)
}
processResources {
inputs.property("version", version)
filesMatching(listOf("mcmod.info")) {
expand(mapOf("version" to version))
}
}
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
java.toolchain.languageVersion = JavaLanguageVersion.of(8)