升级开发环境游戏和依赖项版本

修改输出文件名格式
This commit is contained in:
TheWhiteDog9487 2024-10-30 17:29:26 +08:00
parent e59891c7df
commit 7e6b5bea64
2 changed files with 27 additions and 5 deletions

View File

@ -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<MavenPublication>("mavenJava") {

View File

@ -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
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/