Skip to content

Commit bfe9ded

Browse files
committed
Merge branch '2.7.x'
2 parents 1db1ef4 + 9369986 commit bfe9ded

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spring-boot-project/spring-boot/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,14 @@ def syncJavaTemplates = tasks.register("syncJavaTemplates", Sync) {
161161
inputs.properties(properties)
162162
}
163163

164+
tasks.named("checkFormatMain") {
165+
def generatedSources = fileTree("build/generated-sources/main")
166+
// Exclude source generated from the templates as expand(properties) changes line endings on Windows
167+
exclude { candidate -> generatedSources.contains(candidate.file) }
168+
// Add the templates to check that the input is correctly formatted
169+
source(fileTree("src/main/javaTemplates"))
170+
}
171+
164172
plugins.withType(EclipsePlugin) {
165173
eclipse {
166174
synchronizationTasks syncJavaTemplates

0 commit comments

Comments
 (0)