forked from CaliforniaDemise/Bubbles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (37 loc) · 1.04 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
plugins {
id "com.gtnewhorizons.retrofuturagradle" version "1.3.33"
}
group = "surreal"
version = "1.12-pre2.0-2-bubbles"
archivesBaseName = "Baubles"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
minecraft {
mcVersion = "1.12.2"
injectedTags.put("MOD_VERSION", project.version)
}
for (File at : sourceSets.main.resources.files) {
if (at.name.toLowerCase().endsWith("_at.cfg")) {
tasks.deobfuscateMergedJarToSrg.accessTransformerFiles.from(at)
tasks.srgifyBinpatchedJar.accessTransformerFiles.from(at)
}
}
processResources {
inputs.property 'version', project.version
filesMatching(['mcmod.info']) { fcd ->
fcd.expand('version': project.version)
}
rename '(.+_at.cfg)', 'META-INF/$1' // Make sure Access Transformer files are in META-INF folder
}
jar {
manifest {
attributes(['FMLAT':'baubles_at.cfg'])
}
}
tasks.injectTags.configure {
outputClassName.set("baubles.common.Tags")
}
tasks.setupDecompWorkspace.dependsOn(tasks.injectTags)