Remove calls to deprecated Project.getBuildDir() in Gradle files

Closes gh-42739
This commit is contained in:
Moritz Halbritter
2024-10-17 17:41:00 +02:00
parent a48dfbd5c7
commit ce106eb43c
16 changed files with 64 additions and 63 deletions

View File

@@ -106,12 +106,12 @@ task tar(type: Tar) {
task homebrewFormula(type: org.springframework.boot.build.cli.HomebrewFormula) {
dependsOn tar
outputDir = file("${buildDir}/homebrew")
outputDir = layout.buildDirectory.dir("homebrew")
template = file("src/main/homebrew/spring-boot.rb")
archive = tar.archiveFile
}
def homebrewFormulaArtifact = artifacts.add("archives", file("${buildDir}/homebrew/spring-boot.rb")) {
def homebrewFormulaArtifact = artifacts.add("archives", file(layout.buildDirectory.file("homebrew/spring-boot.rb"))) {
type "rb"
classifier "homebrew"
builtBy "homebrewFormula"