mirror of
https://github.com/GTNewHorizons/lwjgl3ify.git
synced 2026-11-26 23:13:01 +00:00
98 lines
4.8 KiB
Groovy
98 lines
4.8 KiB
Groovy
|
|
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.8'
|
|
def rfbVersion = '1.0.11'
|
|
// 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'
|
|
}
|