Browse Source

Merge branch '2.7.x'

pull/30002/head
Andy Wilkinson 4 years ago
parent
commit
bfe9dede5b
  1. 8
      spring-boot-project/spring-boot/build.gradle

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

@ -161,6 +161,14 @@ def syncJavaTemplates = tasks.register("syncJavaTemplates", Sync) { @@ -161,6 +161,14 @@ 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"))
}
plugins.withType(EclipsePlugin) {
eclipse {
synchronizationTasks syncJavaTemplates

Loading…
Cancel
Save