v1.1.6: 新增 Fabric Loom 构建环境
- 添加 build.gradle / settings.gradle / gradle.properties / wrapper - 嵌入 baritone-api-fabric-1.13.1.jar 依赖 - 添加 .gitignore - 更新版本号至 1.1.6
这个提交包含在:
+43
@@ -0,0 +1,43 @@
|
||||
plugins {
|
||||
id 'fabric-loom' version '1.17.19'
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
version = project.mod_version
|
||||
group = project.maven_group
|
||||
|
||||
base {
|
||||
archivesName = project.archives_base_name
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// Minecraft
|
||||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
|
||||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||
|
||||
// Fabric API
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||
|
||||
// Baritone API (local jar, compile only)
|
||||
modImplementation files("libs/baritone-api-fabric-1.13.1.jar")
|
||||
}
|
||||
|
||||
processResources {
|
||||
inputs.property "version", project.version
|
||||
filteringCharset "UTF-8"
|
||||
|
||||
filesMatching("fabric.mod.json") {
|
||||
expand "version": project.version
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
it.options.release = 21
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(21)
|
||||
}
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户