-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle
323 lines (286 loc) · 8.66 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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
plugins {
id 'fabric-loom' version '0.11-SNAPSHOT'
id 'io.github.juuxel.loom-quiltflower' version '1.6.0'
id 'maven-publish'
id "org.jetbrains.kotlin.jvm"
}
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
repositories {
maven {
name = "FabricMC"
url = "https://maven.fabricmc.net/"
}
maven {
name = "JitPack"
url 'https://jitpack.io'
}
maven {
name = "Sonatype"
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven {
name = "Jamies"
url "https://maven.jamieswhiteshirt.com/libs-release/"
content {
includeGroup "com.jamieswhiteshirt"
}
}
maven {
name = "Jared"
url 'https://maven.blamejared.com'
content {
includeGroup "vazkii.patchouli"
}
}
maven {
name = "Ladysnake Libs"
url = 'https://ladysnake.jfrog.io/artifactory/mods'
content {
includeGroup "io.github.ladysnake"
includeGroupByRegex "io\\.github\\.onyxstudios.*"
includeGroupByRegex "dev\\.onyxstudios.*"
}
}
maven {
name = "GeckoLib"
url = "https://dl.cloudsmith.io/public/geckolib3/geckolib/maven"
content {
includeGroup "software.bernie.geckolib"
}
}
maven {
name = "Cotton"
url = "https://server.bbkr.space/artifactory/libs-release/"
content {
includeGroup "io.github.cottonmc"
}
}
maven {
name = "Shedaniel"
url = "https://maven.shedaniel.me"
content {
includeGroupByRegex "dev\\.architectury.*"
includeGroupByRegex "me\\.shedaniel.*"
includeGroupByRegex "me\\.sargunvohra.*"
}
}
maven {
name = "Terraformers"
url = "https://maven.terraformersmc.com/releases/"
content {
includeGroup "io.github.prospector"
includeGroup "com.terraformersmc"
includeGroup "dev.emi"
}
}
maven {
name = "Architectury"
url "https://maven.architectury.dev/"
content {
includeGroup "dev.architectury"
}
}
maven {
name = "cafeteria.dev"
url = 'https://maven.cafeteria.dev'
content {
includeGroup 'net.adriantodt.fabricmc'
}
}
maven {
name = "Flemmli97"
url "https://gitlab.com/api/v4/projects/21830712/packages/maven"
content {
includeGroup 'io.github.flemmli97'
}
}
maven {
name = "Gunpowder"
url = "https://maven.martmists.com/releases"
content {
includeGroup 'io.github.gunpowder'
}
}
maven {
name = "Permissions"
url = "https://maven.nucleoid.xyz"
content {
includeGroup 'eu.pb4'
}
}
maven {
name = "HavenKing"
url = "https://hephaestus.dev/release"
content {
includeGroup 'dev.inkwell'
}
}
maven {
name = "Flemmli97"
url = "https://gitlab.com/api/v4/projects/21830712/packages/maven"
content {
includeGroup 'io.github.flemmli97'
}
}
maven {
name = "Appleskin"
url = "https://maven.ryanliptak.com/"
content {
includeGroup 'squeek.appleskin'
}
}
maven {
name = "CurseMaven"
url "https://www.cursemaven.com"
content {
includeGroup "curse.maven"
}
}
mavenLocal()
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
///
/// HARD DEPS
///
// Fabric API
modImplementation("net.fabricmc.fabric-api:fabric-api:${project.fabric_version}") {
}
// Fabric Language Kotlin
modImplementation "net.fabricmc:fabric-language-kotlin:${project.fabric_kotlin_version}"
// GeckoLib
modImplementation("software.bernie.geckolib:geckolib-fabric-1.19:${project.geckolib_version}") {
exclude group: "com.eliotlash.mclib"
exclude group: "com.eliotlash.molang"
exclude group: "net.fabricmc.fabric-api"
}
///
/// INCLUDED
///
// Satin
modImplementation include("io.github.ladysnake:satin:${project.satin_version}") {
exclude group: "net.fabricmc.fabric-api"
}
// Reach Entity Attributes
modImplementation include("com.jamieswhiteshirt:reach-entity-attributes:${project.rea_version}") {
exclude group: "net.fabricmc.fabric-api"
}
// Patchouli
modImplementation include("vazkii.patchouli:Patchouli:${project.patchouli_version}") {
exclude group: "net.fabricmc.fabric-api"
}
// Cloth Config
modImplementation include("me.shedaniel.cloth:cloth-config-fabric:${project.cloth_config_version}") {
exclude group: "net.fabricmc.fabric-api"
}
// CCA
modApi include("dev.onyxstudios.cardinal-components-api:cardinal-components-base:${project.cc_version}") {
exclude group: "net.fabricmc.fabric-api"
}
modApi include("dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${project.cc_version}") {
exclude group: "net.fabricmc.fabric-api"
}
// LibCD
//include "io.github.cottonmc:LibCD:${project.libcd_version}"
//modRuntime "io.github.cottonmc:LibCD:${project.libcd_version}"
// Fabric Permissions API
modImplementation include("me.lucko:fabric-permissions-api:${project.fpa_version}") {
exclude group: "net.fabricmc.fabric-api"
}
// Pehkui
modImplementation include("com.github.Virtuoel:Pehkui:${project.pehkui_version}") {
exclude group: "net.fabricmc.fabric-api"
}
///
/// SOFT DEPS
///
// REI
modCompileOnly("me.shedaniel:RoughlyEnoughItems-fabric:${project.rei_version}") {
exclude group: "net.fabricmc.fabric-api"
}
// EMI
modCompileOnly("dev.emi:emi:${project.emi_version}") {
exclude group: "net.fabricmc.fabric_api"
exclude group: "null"
}
// Origins
modCompileOnly("com.github.apace100:origins-fabric:${project.origins_version}") {
exclude module: "modmenu"
exclude group: "io.github.OnyxStudios.Cardinal-Components-API"
exclude group: "net.fabricmc.fabric-api"
}
// Rat's Mischief
modCompileOnly("curse.maven:rats-mischief-431787:${project.rats_version}") {
exclude group: "net.fabricmc.fabric-api"
}
// Bewitchment
modCompileOnly("curse.maven:bewitchment-394915:${project.bewitchment_version}") {
exclude group: "net.fabricmc.fabric-api"
}
// Flan
modCompileOnly("io.github.flemmli97:flan:${project.flan_version}") {
exclude group: "net.fabricmc.fabric-api"
}
modCompileOnly("squeek.appleskin:appleskin-fabric:${project.appleskin_version}:api") {
exclude group: "net.fabricmc.fabric-api"
transitive = false
}
// ModMenu
modImplementation("com.terraformersmc:modmenu:${project.modmenu_version}") {
exclude group: "net.fabricmc.fabric-api"
}
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
java {
// If you remove this line, sources will not be generated.
withSourcesJar()
}
jar {
from("LICENSE") {
// Make filename unique
rename { "${it}_${project.archivesBaseName}"}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
maven {
name = "willBlRepositoryReleases"
url = "https://maven.willbl.dev/releases"
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
}
}
compileKotlin.kotlinOptions.jvmTarget = "16"
/**
* https://dev.to/williambl/mixins-kotlin-and-default-methods-why-they-don-t-work-together-417d
*/
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs += '-Xjvm-default=all'
}
}