-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathdependencies.gradle
97 lines (81 loc) · 4.76 KB
/
dependencies.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
minecraft {
mainLwjglVersion = 3
lwjgl3Version = "3.3.3"
}
def addGtForTesting = Boolean.parseBoolean(project.getProperties().getOrDefault("withGregtech", "false").toString())
def addReikaModsForTesting = Boolean.parseBoolean(project.getProperties().getOrDefault("withReikaMods", "false").toString())
def asmVersion = '9.7.1'
def rfbVersion = '1.0.7'
// 100% binary compatible, 1 minor source compatibility issue (removed a throws IOException clause)
def gsonVersion = '2.10.1'
configurations.configureEach {
resolutionStrategy.dependencySubstitution {
substitute module('net.minecraft:launchwrapper') using module("com.gtnewhorizons.retrofuturabootstrap:RetroFuturaBootstrap:${rfbVersion}") because("LW replacement")
}
}
dependencies {
// Resolve newer versions of LaunchWrapper to allow java 9+ compat
vanilla_minecraft("com.gtnewhorizons.retrofuturabootstrap:RetroFuturaBootstrap:${rfbVersion}") { transitive = false }
forgePatchesEmbedded("com.gtnewhorizons.retrofuturabootstrap:RetroFuturaBootstrap:${rfbVersion}") { transitive = false }
vanilla_minecraft("com.google.code.gson:gson:${gsonVersion}")
forgePatchesEmbedded("com.google.code.gson:gson:${gsonVersion}")
utilImplementation("org.ow2.asm:asm:${asmVersion}")
utilImplementation("org.ow2.asm:asm-tree:${asmVersion}")
utilImplementation("org.apache.commons:commons-lang3:3.14.0")
utilImplementation("commons-io:commons-io:2.11.0")
utilImplementation("commons-collections:commons-collections:3.2.2")
utilImplementation("com.google.guava:guava:31.1-jre")
hotswapCompileOnly("org.hotswapagent:hotswap-agent-core:1.4.1")
hotswapCompileOnly("com.gtnewhorizons.retrofuturabootstrap:RetroFuturaBootstrap:${rfbVersion}")
forgePatchesEmbedded("org.ow2.asm:asm:${asmVersion}")
forgePatchesEmbedded("org.ow2.asm:asm-commons:${asmVersion}")
forgePatchesEmbedded("org.ow2.asm:asm-tree:${asmVersion}")
forgePatchesEmbedded("org.ow2.asm:asm-analysis:${asmVersion}")
forgePatchesEmbedded("org.ow2.asm:asm-util:${asmVersion}")
forgePatchesEmbedded("org.apache.commons:commons-lang3:3.14.0")
forgePatchesEmbedded("org.apache.commons:commons-compress:1.26.2")
forgePatchesEmbedded("commons-io:commons-io:2.15.1")
// For Just Another Spawner
forgePatchesEmbedded("org.mvel:mvel2:2.5.2.Final")
compileOnly("org.jetbrains:annotations:24.1.0")
// Allow using Unsafe with newer javac versions
compileOnly('me.eigenraven.java8unsupported:java-8-unsupported-shim:1.0.0')
api("com.google.code.gson:gson:${gsonVersion}")
compileOnly("com.mumfrey:liteloader:1.7.10_04:mcpnames")
forgePatchesEmbedded("jakarta.xml.bind:jakarta.xml.bind-api:3.0.1")
forgePatchesEmbedded("javax.servlet:javax.servlet-api:4.0.1")
forgePatchesEmbedded("com.sun.xml.bind:jaxb-impl:3.0.2")
forgePatchesEmbedded("org.openjdk.nashorn:nashorn-core:15.4")
shadowImplementation("com.github.weisj:darklaf-core:3.0.2")
runtimeOnlyNonPublishable('com.github.GTNewHorizons:NotEnoughItems:2.6.49-GTNH:dev')
// runtimeOnlyNonPublishable('com.github.GTNewHorizons:inventory-tweaks:1.7.0:dev')
if (addGtForTesting) {
runtimeOnlyNonPublishable('com.github.GTNewHorizons:GT5-Unofficial:5.09.50.95:dev')
runtimeOnlyNonPublishable("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-478-GTNH:dev")
runtimeOnlyNonPublishable("com.github.GTNewHorizons:Chisel:2.15.3-GTNH:dev")
runtimeOnlyNonPublishable("com.github.GTNewHorizons:ForestryMC:4.9.19:dev")
runtimeOnlyNonPublishable("com.github.GTNewHorizons:Railcraft:9.15.15:dev")
runtimeOnlyNonPublishable("com.github.GTNewHorizons:EnderIO:2.8.22:dev")
runtimeOnlyNonPublishable("com.github.GTNewHorizons:ProjectRed:4.10.5-GTNH:dev") { transitive = false }
runtimeOnlyNonPublishable("com.github.GTNewHorizons:MrTJPCore:1.2.1:dev")
runtimeOnlyNonPublishable("com.github.GTNewHorizons:ForgeMultipart:1.5.0:dev")
runtimeOnlyNonPublishable("com.github.GTNewHorizons:ForgeRelocation:0.2.0:dev")
reobfJarConfiguration group: 'curse.maven', name: 'cofh-core-69162', version: '2388750'
runtimeOnlyNonPublishable("com.github.GTNewHorizons:AppleCore:3.3.4:dev")
runtimeOnlyNonPublishable("com.github.GTNewHorizons:Hodgepodge:2.5.82:dev")
}
if (addReikaModsForTesting) {
// DragonAPI
reobfJarConfiguration('curse.maven:dragon-api-235591:3574508')
// Chromaticraft
reobfJarConfiguration('curse.maven:chromaticraft-235590:3574503')
}
// Just enough calculation
// reobfJarConfiguration('curse.maven:jec-242223:4192990')
}
minecraft {
groupsToExcludeFromAutoReobfMapping.add('curse.maven')
}
configurations.patchedMinecraft {
exclude group: 'org.ow2.asm', module: 'asm-debug-all'
}