From 7e6b5bea641810db4f12e9de57d686b13a8f7dfc Mon Sep 17 00:00:00 2001 From: TheWhiteDog9487 Date: Wed, 30 Oct 2024 17:29:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E5=BC=80=E5=8F=91=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E6=B8=B8=E6=88=8F=E5=92=8C=E4=BE=9D=E8=B5=96=E9=A1=B9?= =?UTF-8?q?=E7=89=88=E6=9C=AC=20=E4=BF=AE=E6=94=B9=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle.kts | 8 ++++++++ gradle.properties | 24 +++++++++++++++++++----- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 9bfa9c3..c3bc7ed 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -70,6 +70,14 @@ tasks.jar { } } +tasks.remapJar{ + // https://docs.gradle.org/current/dsl/org.gradle.api.tasks.bundling.Jar.html#org.gradle.api.tasks.bundling.Jar:archiveFileName + // 用这个属性设置jar包的文件名格式 + // 别用上面那个Jar任务的配置,会被remapJar覆盖掉 + archiveFileName = "${project.base.archivesName.get()}-${project.version} mc${project.extra["compatible_with"]}.jar"} +tasks.remapSourcesJar{ + archiveFileName = "${project.base.archivesName.get()}-${project.version} mc${project.extra["compatible_with"]}-sources.jar"} + publishing { publications { create("mavenJava") { diff --git a/gradle.properties b/gradle.properties index bd5ea66..c6e9a96 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,14 +4,28 @@ org.gradle.parallel=true # Fabric Properties # check these on https://fabricmc.net/develop -minecraft_version=1.21 -yarn_mappings=1.21+build.1 -loader_version=0.15.11 +minecraft_version=1.21.3 +yarn_mappings=1.21.3+build.2 +loader_version=0.16.7 # Mod Properties -mod_version=0.2.0 +mod_version=0.2.1 maven_group=xyz.thewhitedog9487 archives_base_name=ServerAddressSpaceFix # Dependencies -fabric_version=0.100.1+1.21 \ No newline at end of file +fabric_version=0.106.1+1.21.3 + +compatible_with=1.21+1.21.x +# https://modrinth.com/mod/modmenu/versions +# https://maven.terraformersmc.com/releases/com/terraformersmc/modmenu +modmenu_version=12.0.0-beta.1 +# https://modrinth.com/mod/yacl/versions +# https://maven.isxander.dev/#/releases/dev/isxander/yet-another-config-lib +yacl_version=3.6.1+1.21.2-fabric + +# loom_libraries_base=https://bmclapi2.bangbang93.com/maven/ +# loom_resources_base=https://bmclapi2.bangbang93.com/assets/ +# loom_version_manifests=https://bmclapi2.bangbang93.com/mc/game/version_manifest.json +# loom_experimental_versions=https://maven.fabricmc.net/net/minecraft/experimental_versions.json +# loom_fabric_repository=https://repository.hanbings.io/proxy/ \ No newline at end of file