Skip to content

Commit

Permalink
Remove deprecated usage of project in wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
breskeby committed Dec 23, 2024
1 parent d2edc0a commit d08adcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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"
}
}
Expand Down

0 comments on commit d08adcb

Please # to comment.