Files
thaumicadditions/dependencies.gradle
layue13andClaude Sonnet 5.5 bdc54014b4
Build / build (push) Successful in 22m19s
让项目可构建:SRG 名换成 MCP 名、修反编译器留下的语法问题、补 Waila 接口方法
./gradlew build 在本地(JDK 25)通过;产物含原 jar 除 cofh.* 外的全部 336 个类。
未在游戏中运行验证。

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-11 04:14:31 -07:00

21 lines
1.2 KiB
Groovy

repositories {
mavenLocal()
}
def tdlmDependencyVersion = { String artifact, String fallback ->
project.findProperty('tdlm.dependency.' + artifact.toLowerCase() + '.version') ?: fallback
}
dependencies {
// Thaumcraft 4 full dev jar (api + common impl; the sources import thaumcraft.common.* and thaumcraft.client.*)
api("uk.potatolab:Thaumcraft4:${tdlmDependencyVersion('Thaumcraft4', '1.7.10-4.2.3.5-d3ece2a')}")
// cofh.api.energy.IEnergyReceiver is used by TileThaumicGenerator (the CoFH API lives in CoFHLib, not CoFHCore)
compileOnly("uk.potatolab:CoFHLib-1.7.10-Legacy:${tdlmDependencyVersion('CoFHLib-1.7.10-Legacy', '1.7.10R3.0.3-6ab2b0e')}")
// Botania API (com.pengu.thaumcraft.additions.api.others.Botania)
compileOnly("uk.potatolab:Botania:${tdlmDependencyVersion('Botania', '1.13.36-GTNH-722cecf')}:dev") { transitive = false }
// Waila API (com.pengu.thaumcraft.additions.api.others.WAILA)
compileOnly("uk.potatolab:Waila:${tdlmDependencyVersion('Waila', '1.19.30-5462a91')}:api") { transitive = false }
// Baubles is required at runtime (see the @Mod dependencies string); no compile-time import
runtimeOnly("uk.potatolab:Baubles-Expanded:${tdlmDependencyVersion('Baubles-Expanded', '44bd380')}")
}