-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
94 lines (80 loc) · 2.88 KB
/
build.gradle
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
import dev.architectury.pack200.java.Pack200Adapter
plugins {
id "dev.architectury.architectury-pack200" version "0.1.3"
id "gg.essential.loom" version "0.10.0.5"
id "java"
id "maven-publish"
}
version = projectVersion
group = projectGroup
archivesBaseName = projectId
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
compileJava.options.encoding = "UTF-8"
loom {
launchConfigs {
client {
arg("--tweakClass", "gg.essential.loader.stage0.EssentialSetupTweaker")
//arg("--tweakClass", "cc.polyfrost.oneconfig.loader.stage0.LaunchWrapperTweaker")
}
}
runConfigs {
client {
ideConfigGenerated = true
}
}
forge {
pack200Provider = new Pack200Adapter()
mixinConfig("mixins.${projectId}.json")
mixin.defaultRefmapName.set("mixins.${projectId}.refmap.json")
}
}
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
maven { url "https://repo.sk1er.club/repository/maven-public" }
maven { url "https://repo.sk1er.club/repository/maven-releases/" }
maven { url "https://repo.spongepowered.org/repository/maven-public/" }
maven { url 'https://repo.polyfrost.cc/releases' }
}
configurations {
shade
implementation.extendsFrom(shade)
}
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(annotationProcessor("org.spongepowered:mixin:${mixinVersion}"))
shade("gg.essential:loader-launchwrapper:1.1.3")
shade("gg.essential:essential-1.8.9-forge:2581")
// Basic OneConfig dependencies for legacy versions. See OneConfig example mod for more info
//compileOnly('cc.polyfrost:oneconfig-1.8.9-forge:0.2.0-alpha+') // Should not be included in jar
// include should be replaced with a configuration that includes this in the jar
//shade("cc.polyfrost:oneconfig-wrapper-launchwrapper:1.0.0-beta+") // Should be included in jar
//implementation("cc.polyfrost:oneconfig-wrapper-launchwrapper:1.0.0-beta9")
//compileOnly("org.spongepowered:mixin:0.7.11-SNAPSHOT")
}
def mcVersion = "1.8.9"
processResources {
inputs.property("version", projectVersion)
inputs.property("mcversion", mcVersion)
inputs.property("name", projectName)
inputs.property("id", projectId)
}
sourceSets {
main {
output.resourcesDir = java.classesDirectory
}
}
jar {
dependsOn configurations.shade
manifest.attributes(
'ModSide': 'CLIENT',
'ForceLoadAsMod': true,
"MixinConfigs": "mixins.${projectId}.json",
'TweakClass': 'gg.essential.loader.stage0.EssentialSetupTweaker',
//"TweakClass": "cc.polyfrost.oneconfig.loader.stage0.LaunchWrapperTweaker",
"TweakOrder": "0",
"Manifest-Version": 1.0
)
}