From 9c9fbf400e11c40cd10b883cf986a9d4a65009e4 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 4 Oct 2021 12:48:23 +0100 Subject: [PATCH] Upgrade to Spring Java Format 0.0.29 Closes gh-28205 --- buildSrc/gradle.properties | 2 +- .../boot/build/JavaConventions.java | 14 +++++++------- .../metrics/MeterRegistryCustomizer.java | 4 ++-- .../PrometheusMetricsExportAutoConfiguration.java | 4 ++-- .../boot/actuate/endpoint/EndpointFilter.java | 4 ++-- .../CassandraRepositoriesAutoConfiguration.java | 4 ++-- .../ElasticsearchDataAutoConfiguration.java | 2 +- ...ElasticsearchRepositoriesAutoConfiguration.java | 4 ++-- ...ElasticsearchRepositoriesAutoConfiguration.java | 4 ++-- .../r2dbc/R2dbcRepositoriesAutoConfiguration.java | 4 ++-- .../redis/RedisRepositoriesAutoConfiguration.java | 4 ++-- .../solr/SolrRepositoriesAutoConfiguration.java | 2 +- ...oConfigurationCustomFilterContextPathTests.java | 5 +++-- .../json/JsonTestersAutoConfiguration.java | 4 ++-- .../web/servlet/MockMvcAutoConfiguration.java | 4 ++-- .../MockWebServiceServerAutoConfiguration.java | 4 ++-- ...ebTestClientSpringBootTestIntegrationTests.java | 5 +++-- .../boot/test/context/runner/ContextConsumer.java | 4 ++-- .../boot/loader/tools/layer/ContentFilter.java | 4 ++-- .../boot/loader/archive/Archive.java | 14 +++++++------- .../springframework/boot/loader/jar/JarFile.java | 2 +- .../rsocket/server/RSocketServerCustomizer.java | 4 ++-- .../web/embedded/jetty/JettyServerCustomizer.java | 4 ++-- .../web/embedded/netty/NettyRouteProvider.java | 4 ++-- .../web/embedded/netty/NettyServerCustomizer.java | 4 ++-- .../embedded/tomcat/TomcatConnectorCustomizer.java | 4 ++-- .../embedded/tomcat/TomcatContextCustomizer.java | 4 ++-- .../tomcat/TomcatProtocolHandlerCustomizer.java | 4 ++-- .../servlet/server/ServletWebServerFactory.java | 4 ++-- 29 files changed, 66 insertions(+), 64 deletions(-) diff --git a/buildSrc/gradle.properties b/buildSrc/gradle.properties index 3c2439699a..3bb065791d 100644 --- a/buildSrc/gradle.properties +++ b/buildSrc/gradle.properties @@ -1 +1 @@ -javaFormatVersion=0.0.26 \ No newline at end of file +javaFormatVersion=0.0.29 diff --git a/buildSrc/src/main/java/org/springframework/boot/build/JavaConventions.java b/buildSrc/src/main/java/org/springframework/boot/build/JavaConventions.java index 91ffe1eaa1..79400a0a71 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/JavaConventions.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/JavaConventions.java @@ -24,9 +24,9 @@ import java.util.Set; import java.util.TreeMap; import java.util.stream.Collectors; -import io.spring.javaformat.gradle.CheckTask; -import io.spring.javaformat.gradle.FormatTask; import io.spring.javaformat.gradle.SpringJavaFormatPlugin; +import io.spring.javaformat.gradle.tasks.CheckFormat; +import io.spring.javaformat.gradle.tasks.Format; import org.gradle.api.JavaVersion; import org.gradle.api.Project; import org.gradle.api.artifacts.Configuration; @@ -70,8 +70,8 @@ import org.springframework.boot.build.toolchain.ToolchainPlugin; *
  • A {@code testRuntimeOnly} dependency upon * {@code org.junit.platform:junit-platform-launcher} is added to projects with the * {@link JavaPlugin} applied - *
  • {@link JavaCompile}, {@link Javadoc}, and {@link FormatTask} tasks are configured - * to use UTF-8 encoding + *
  • {@link JavaCompile}, {@link Javadoc}, and {@link Format} tasks are configured to + * use UTF-8 encoding *
  • {@link JavaCompile} tasks are configured to use {@code -parameters}. *
  • When building with Java 8, {@link JavaCompile} tasks are also configured to: *