mirror of
https://github.com/sys-32Dev/TACZ.git
synced 2026-08-08 20:06:25 +00:00
恢复 remote 依赖以确保 jar in jar 工作正常
This commit is contained in:
69
build.gradle
69
build.gradle
@@ -111,9 +111,23 @@ minecraft {
|
||||
sourceSets.main.resources { srcDir 'src/generated/resources' }
|
||||
|
||||
repositories {
|
||||
// 优先本地 libs 文件夹
|
||||
flatDir {
|
||||
dir 'libs'
|
||||
maven {
|
||||
// 阿里云镜像,方便国内开发
|
||||
url = uri("https://maven.aliyun.com/repository/public/")
|
||||
content {
|
||||
includeGroup 'org.apache.commons'
|
||||
}
|
||||
}
|
||||
maven {
|
||||
// location of the maven that hosts JEI files since January 2023
|
||||
// Patchouli
|
||||
name = "Jared's maven"
|
||||
url = "https://maven.blamejared.com/"
|
||||
}
|
||||
maven {
|
||||
// location of a maven mirror for JEI files, as a fallback
|
||||
name = "Mod Maven"
|
||||
url = "https://modmaven.k-4u.nl"
|
||||
}
|
||||
maven {
|
||||
url "https://cursemaven.com"
|
||||
@@ -121,35 +135,53 @@ repositories {
|
||||
includeGroup "curse.maven"
|
||||
}
|
||||
}
|
||||
maven { url "https://maven.shedaniel.me/" } // cloth config api
|
||||
maven { url "https://dvs1.progwml6.com/files/maven/" }
|
||||
maven { url "https://modmaven.dev" }
|
||||
maven {
|
||||
name = 'tterrag maven'
|
||||
url = 'https://maven.tterrag.com/'
|
||||
}
|
||||
maven {
|
||||
url 'https://jitpack.io'
|
||||
}
|
||||
maven {
|
||||
name "KosmX's maven"
|
||||
url 'https://maven.kosmx.dev/'
|
||||
}
|
||||
mavenCentral() // MixinExtras is there
|
||||
mavenLocal()
|
||||
flatDir {
|
||||
dir 'libs'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
minecraft "net.minecraftforge:forge:${forge_version}"
|
||||
|
||||
// Apache Commons Math 库,用于进行一些插值运算
|
||||
minecraftLibrary(jarJar('libs:commons-math3:3.6.1')) {
|
||||
minecraftLibrary(jarJar('org.apache.commons:commons-math3:3.6.1')) {
|
||||
jarJar.ranged(it, "[3.6.1,)")
|
||||
}
|
||||
|
||||
// LuaJ 库,将 lua 脚本语言引入用于控制枪械的逻辑和动画状态机
|
||||
minecraftLibrary(jarJar('libs:luaj-jse:3.0.3')) {
|
||||
jarJar.ranged(it, "[3.0.3,)")
|
||||
minecraftLibrary(jarJar('com.github.FiguraMC.luaj:luaj-core:3.0.8-figura')) {
|
||||
exclude group: 'org.apache.commons', module: 'commons-lang3'
|
||||
jarJar.ranged(it, "[3.0.8,)")
|
||||
}
|
||||
minecraftLibrary(jarJar('libs:luaj-core:3.0.3')) {
|
||||
jarJar.ranged(it, "[3.0.3,)")
|
||||
minecraftLibrary(jarJar('com.github.FiguraMC.luaj:luaj-jse:3.0.8-figura')) {
|
||||
exclude group: 'org.apache.commons', module: 'commons-lang3'
|
||||
jarJar.ranged(it, "[3.0.8,)")
|
||||
}
|
||||
minecraftLibrary(jarJar('org.apache.bcel:bcel:6.6.1')) {
|
||||
exclude group: 'org.apache.commons', module: 'commons-lang3'
|
||||
jarJar.ranged(it, "[6.6.1,)")
|
||||
}
|
||||
|
||||
// compile against the JEI API but do not include it at runtime
|
||||
compileOnly(fg.deobf("libs:jei-1.20.1-common-api:${jei_version}"))
|
||||
compileOnly(fg.deobf("libs:jei-1.20.1-forge-api:${jei_version}"))
|
||||
compileOnly(fg.deobf("mezz.jei:jei-1.20.1-common-api:${jei_version}"))
|
||||
compileOnly(fg.deobf("mezz.jei:jei-1.20.1-forge-api:${jei_version}"))
|
||||
// at runtime, use the full JEI jar for Forge
|
||||
// runtimeOnly(fg.deobf("libs:jei-1.20.1-forge:${jei_version}"))
|
||||
runtimeOnly(fg.deobf("mezz.jei:jei-1.20.1-forge:15.20.0.104"))
|
||||
// 性能分析工具模组
|
||||
runtimeOnly fg.deobf("curse.maven:spark-361579:4738952")
|
||||
@@ -163,7 +195,7 @@ dependencies {
|
||||
// 越肩视角,用来兼容第三人称准星
|
||||
implementation fg.deobf("curse.maven:shoulder-surfing-reloaded-243190:5455954")
|
||||
|
||||
implementation fg.deobf("libs:cloth-config-forge:${cloth_config_forge}")
|
||||
implementation fg.deobf("me.shedaniel.cloth:cloth-config-forge:${cloth_config_forge}")
|
||||
|
||||
compileOnly fg.deobf("curse.maven:embeddium-908741:${embeddedt_id}")
|
||||
// 同时兼容两个版本
|
||||
@@ -172,21 +204,14 @@ dependencies {
|
||||
|
||||
runtimeOnly fg.deobf("curse.maven:carry-on-274259:${carry_on_id}")
|
||||
|
||||
implementation fg.deobf("libs:player-animation-lib-forge:${player_animation_lib}")
|
||||
implementation fg.deobf("dev.kosmx.player-anim:player-animation-lib-forge:${player_animation_lib}")
|
||||
|
||||
// 引入 MixinExtras 以解决一些棘手的 Mixin 冲突问题(比如 @Redirect 不能嵌套)
|
||||
// 如果未来有迁移到 Fabric / NeoForge 的计划,请注意这两个框架都已自带 MixinExtras,无需自行打包。
|
||||
compileOnly(annotationProcessor("libs:mixinextras-common:0.3.6"))
|
||||
implementation(jarJar("libs:mixinextras-forge:0.3.6")) {
|
||||
compileOnly(annotationProcessor("io.github.llamalad7:mixinextras-common:0.3.6"))
|
||||
implementation(jarJar("io.github.llamalad7:mixinextras-forge:0.3.6")) {
|
||||
jarJar.ranged(it, "[0.3.6,)")
|
||||
}
|
||||
// // mek
|
||||
// runtimeOnly fg.deobf("curse.maven:mekanism-268560:5662583")
|
||||
// // create
|
||||
// runtimeOnly fg.deobf("com.simibubi.create:create-1.20.1:${create_version}:slim") { transitive = false }
|
||||
// runtimeOnly fg.deobf("com.jozufozu.flywheel:flywheel-forge-1.20.1:${flywheel_version}")
|
||||
// runtimeOnly fg.deobf("com.tterrag.registrate:Registrate:${registrate_version}")
|
||||
|
||||
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -11,4 +11,14 @@ pluginManagement {
|
||||
}
|
||||
}
|
||||
|
||||
sourceControl {
|
||||
gitRepository(URI.create("https://github.com/FiguraMC/luaj.git")) {
|
||||
producesModule("com.github.FiguraMC.luaj:luaj-jse-figura")
|
||||
}
|
||||
|
||||
gitRepository(URI.create("https://github.com/FiguraMC/luaj.git")) {
|
||||
producesModule("com.github.FiguraMC.luaj:luaj-core-figura")
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.name = "tacz"
|
||||
@@ -82,6 +82,7 @@ public class AttachmentQueryCategory implements IRecipeCategory<AttachmentQueryE
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("removal")
|
||||
public IDrawable getBackground() {
|
||||
return bgDraw;
|
||||
}
|
||||
|
||||
@@ -79,6 +79,7 @@ public class GunSmithTableCategory implements IRecipeCategory<GunSmithTableRecip
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("removal")
|
||||
public IDrawable getBackground() {
|
||||
return bgDraw;
|
||||
}
|
||||
|
||||
@@ -89,6 +89,7 @@ public class ScriptManager extends SimplePreparableReloadListener< List<Map.Entr
|
||||
|
||||
private void initGlobals() {
|
||||
globals = JsePlatform.standardGlobals();
|
||||
//LuaJC.install(globals);
|
||||
if (libraries != null) {
|
||||
libraries.forEach(library -> library.install(globals));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user