From b7ba1d85210e3a397cada64e91652595399aeb04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Mon, 10 Aug 2026 16:04:40 +0200 Subject: [PATCH] Revert "Work around Gradle changing line endings during property expansion" This reverts commit 936998647e877d330cb6d36697f1632140ebdf3e. Closes gh-50905 --- core/spring-boot/build.gradle | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/spring-boot/build.gradle b/core/spring-boot/build.gradle index 773f8dd1c35..e94b0e03072 100644 --- a/core/spring-boot/build.gradle +++ b/core/spring-boot/build.gradle @@ -81,14 +81,6 @@ def syncJavaTemplates = tasks.register("syncJavaTemplates", Sync) { inputs.properties(properties) } -tasks.named("checkFormatMain") { - def generatedSources = fileTree("build/generated-sources/main") - // Exclude source generated from the templates as expand(properties) changes line endings on Windows - exclude { candidate -> generatedSources.contains(candidate.file) } - // Add the templates to check that the input is correctly formatted - source(fileTree("src/main/javaTemplates")) -} - tasks.named("compileJava") { // Provide the project coordinates to the `GraalVmProcessor`: options.compilerArgs << '-Alog4j.graalvm.groupId=org.springframework.boot'