From d8257c38b09bf0e6642bbf3b9ac79bde0ec4297d Mon Sep 17 00:00:00 2001 From: nelind Date: Fri, 6 Sep 2024 21:35:12 +0200 Subject: [PATCH] Update Gradle to 8.8 to support Loom 1.7 and clean up some deprecations in build.gradle --- build.gradle | 4 ++-- gradle/wrapper/gradle-wrapper.properties | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 1aedffc25..f178edb02 100644 --- a/build.gradle +++ b/build.gradle @@ -135,7 +135,7 @@ curseforge { addGameVersion "Fabric" addGameVersion "Quilt" - mainArtifact(file("${project.buildDir}/libs/${archivesBaseName}-${version}-fabric.jar")) { + mainArtifact(file("${project.layout.buildDirectory}/libs/${base.archivesName}-${version}-fabric.jar")) { displayName = "[${project.minecraft_version}] Taterzens ${version}" } @@ -157,7 +157,7 @@ modrinth { changelog = ENV.CHANGELOG ?: "A changelog can be found at https://github.com/samolego/Taterzens/releases/tag/${version}" versionName = "[${project.minecraft_version}] Taterzens ${version} [Fabric]" - uploadFile = file("${project.buildDir}/libs/${archivesBaseName}-${version}-fabric.jar") + uploadFile = file("${project.layout.buildDirectory}/libs/${base.archivesName}-${version}-fabric.jar") gameVersions = ["${project.minecraft_version}"] loaders = ['fabric', 'quilt'] diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 1af9e0930..a4413138c 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME