From d08adcb80b2fa09459bbfa189d125bb99042fc75 Mon Sep 17 00:00:00 2001 From: Rene Groeschke Date: Mon, 23 Dec 2024 13:51:53 +0100 Subject: [PATCH] Remove deprecated usage of project in wrapper --- build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 41971dd86a469..115e770e7e65f 100644 --- a/build.gradle +++ b/build.gradle @@ -385,6 +385,7 @@ tasks.register("branchConsistency") { tasks.named("wrapper").configure { distributionType = 'ALL' + def layout = project.layout doLast { // copy wrapper properties file to build-tools-internal to allow seamless idea integration def file = new File("build-tools-internal/gradle/wrapper/gradle-wrapper.properties") @@ -395,7 +396,7 @@ tasks.named("wrapper").configure { // Update build-tools to reflect the Gradle upgrade // TODO: we can remove this once we have tests to make sure older versions work. - project.file('build-tools-internal/src/main/resources/minimumGradleVersion').text = gradleVersion + layout.file('build-tools-internal/src/main/resources/minimumGradleVersion').text = gradleVersion println "Updated minimum Gradle Version" } }