-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
219 lines (188 loc) · 7.34 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net' }
mavenCentral()
maven { url = 'https://repo.spongepowered.org/repository/maven-public' }
}
dependencies {
classpath "org.spongepowered:mixingradle:${mixingradle_version}"
classpath 'org.parchmentmc:librarian:1.+'
}
}
plugins {
id 'net.minecraftforge.gradle' version '[6.0,6.2)'
}
apply plugin: 'maven-publish'
apply plugin: 'org.spongepowered.mixin'
apply plugin: 'org.parchmentmc.librarian.forgegradle'
version = "${ll_version}"
group = "dev.kxmc.${modid}"
archivesBaseName = "${modid}"
if (lljij.toBoolean()) jarJar.enable()
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
minecraft {
//mappings channel: 'parchment', version: '1.19.3-2023.03.12-1.19.4'
mappings channel: 'official', version: "${minecraft_version}"
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
runs {
client {
workingDirectory project.file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'info'
mods {
"${modid}" {
source sourceSets.main
}
}
}
server {
workingDirectory project.file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'info'
mods {
"${modid}" {
source sourceSets.main
}
}
}
data {
workingDirectory project.file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'info'
// Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
args '--mod', "${modid}", '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
mods {
"${modid}" {
source sourceSets.main
}
}
}
}
}
sourceSets.main.resources { srcDir 'src/generated/resources' }
mixin {
add sourceSets.main, "${modid}.refmap.json"
config "${modid}.mixins.json"
}
jar {
manifest {
attributes([
"Specification-Title" : "${modid}",
"Specification-Vendor" : "xkmc",
"Specification-Version" : "1", // We are version 1 of ourselves
"Implementation-Title" : project.name,
"Implementation-Version" : project.jar.archiveVersion,
"Implementation-Vendor" : "xkmc",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
'MixinConfigs' : "${modid}.mixins.json"
])
}
}
java {
withSourcesJar()
}
jar.finalizedBy('reobfJar')
publishing {
publications {
mavenJava(MavenPublication) {
artifact jar
}
}
repositories {
maven {
url "file://${project.projectDir}/mcmodsrepo"
}
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
if (lljij.toBoolean()) {
reobf {
jarJar {}
}
tasks.jarJar.finalizedBy('reobfJarJar')
tasks.jarJar.configure {
archiveClassifier.set('')
}
jar {
archiveClassifier.set('slim')
}
}
dependencies {
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
compileOnly(annotationProcessor("com.github.llamalad7.mixinextras:mixinextras-common:${mixin_extras_version}"))
if (rootMod.toBoolean()) {
implementation(jarJar("com.github.llamalad7.mixinextras:mixinextras-forge:${mixin_extras_version}")) {
transitive = false
jarJar.ranged(it, "[${mixin_extras_version},)")
}
} else {
implementation("com.github.llamalad7.mixinextras:mixinextras-forge:${mixin_extras_version}")
}
annotationProcessor "org.spongepowered:mixin:${mixin_version}:processor"
implementation fg.deobf("com.tterrag.registrate:Registrate:${registrate_version}")
if (rootMod.toBoolean()) {
jarJar(group: 'com.tterrag.registrate', name: 'Registrate', version: "[MC1.20,MC1.21)")
}
}
repositories {
flatDir {
dirs 'libs'
}
maven { url 'https://jitpack.io' }
maven {
// Location of the maven that hosts JEI files (and TiC)
name 'Progwml6 maven'
url 'https://dvs1.progwml6.com/files/maven'
}
maven { // Registrate
url "https://maven.tterrag.com/"
}
maven {
// Location of the maven for vazkii's mods
name 'blamejared'
url 'https://maven.blamejared.com'
}
maven {
url 'https://www.cursemaven.com'
content {
includeGroup "curse.maven"
}
}
maven {
url = "https://maven.theillusivec4.top/"
}
}
dependencies {
implementation fg.deobf("dev.xkmc.l2library:l2library:${l2library_version}-slim")
implementation fg.deobf("dev.xkmc.l2serial:l2serial:1.2.2")
implementation fg.deobf("dev.xkmc.l2screentracker:l2screentracker:0.1.4")
implementation fg.deobf("dev.xkmc.l2itemselector:l2itemselector:0.1.8")
implementation fg.deobf("dev.xkmc.l2tabs:l2tabs:0.3.2")
implementation fg.deobf("dev.xkmc.l2complements:l2complements:2.4.36-slim")
implementation fg.deobf("dev.xkmc.l2damagetracker:l2damagetracker:0.3.7")
runtimeOnly fg.deobf("dev.xkmc.l2modularblock:l2modularblock:1.1.0")
runtimeOnly fg.deobf("dev.xkmc.l2backpack:l2backpack:2.4.19-slim")
runtimeOnly fg.deobf("dev.xkmc.modulargolems:modulargolems:2.4.30-slim")
runtimeOnly fg.deobf("dev.xkmc.l2archery:l2archery:2.4.13")
runtimeOnly fg.deobf("dev.xkmc.l2weaponry:l2weaponry:2.4.25")
implementation fg.deobf("mezz.jei:jei-${jei_minecraft_version}:${jei_version}")
implementation fg.deobf("top.theillusivec4.curios:curios-forge:${curios_version}")
implementation fg.deobf("curse.maven:the-twilight-forest-227639:4635921")
implementation fg.deobf("curse.maven:jade-324717:4654448")
runtimeOnly fg.deobf("curse.maven:attributefix-280510:4588114")
runtimeOnly fg.deobf("curse.maven:bookshelf-228525:4581675")
runtimeOnly fg.deobf("curse.maven:enchantment-descriptions-250419:4587429")
runtimeOnly fg.deobf("curse.maven:patchouli-306770:4636277")
runtimeOnly fg.deobf("curse.maven:lendercataclysm-551586:5058433")
runtimeOnly fg.deobf("curse.maven:citadel-331936:4848887")
runtimeOnly fg.deobf("curse.maven:geckolib-388172:4711657")
runtimeOnly fg.deobf("curse.maven:playeranimator-658587:4587214")
implementation fg.deobf("curse.maven:caelus-308989:4581481")
implementation fg.deobf("curse.maven:irons-spells-n-spellbooks-855414:4693050")
implementation fg.deobf("curse.maven:ars-nouveau-401955:4751471")
implementation fg.deobf("curse.maven:uwrad-forge-853354:4502036")
runtimeOnly fg.deobf("curse.maven:just-enough-effect-descriptions-jeed-532286:4599236")
implementation fg.deobf("curse.maven:farmers-delight-398521:5051242")
}