generated from makamys/forge-mod-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathproject.gradle
45 lines (37 loc) · 1.51 KB
/
project.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
project.ext.override_dependencies = true
dependencies {
shadow('com.esotericsoftware.kryo:kryo5:5.5.0')
compile files('gradlelibs/fastcraft-dummy.jar') // A jar with empty classes, just to avoid errors during build
compile files('gradlelibs/optifine-dummy.jar') // A jar with empty classes, just to avoid errors during build
}
jar {
// we disable the original jar task, and make shadowJar do the work instead
enabled = false
dependsOn shadowJar
}
// shadowJar is the new jar
shadowJar {
classifier = '' // use the same file name as the jar task
configurations = [project.configurations.shadow]
relocate 'makamys.mclib', 'makamys.coretweaks.repackage.makamys.mclib'
relocate 'net.sf.cglib', 'makamys.coretweaks.repackage.net.sf.cglib'
relocate 'com.esotericsoftware.kryo', 'makamys.coretweaks.repackage.com.esotericsoftware.kryo'
exclude '**/LICENSE.txt'
manifest {
attributes (
'MixinConfigs': 'coretweaks.mixin.json,coretweaks-init.mixin.json,coretweaks-preinit.mixin.json',
// If these two are not set, Forge will not detect the mod, it will only run the mixins
'FMLCorePluginContainsFMLMod': 'true',
'ForceLoadAsMod': 'true',
'FMLCorePlugin': 'makamys.coretweaks.CoreTweaksPlugin',
'FMLAT': "${project.modid}_at.cfg",
)
}
from('.') {
include "README.md"
include "LICENSE"
include "CREDITS"
into ''
}
}
apply from: "makalibs.gradle"