diff --git a/build.gradle b/build.gradle index 71a02518d69..62057122b57 100644 --- a/build.gradle +++ b/build.gradle @@ -7,8 +7,17 @@ plugins { } apply plugin: 'java' -apply plugin: 'checkstyle' -apply plugin: 'io.spring.javaformat' +// apply plugin: 'checkstyle' +// apply plugin: 'io.spring.javaformat' + +import io.spring.javaformat.gradle.SpringJavaFormatPlugin + +project.getPlugins() + .withType(SpringJavaFormatPlugin.class, + (javaFormat) -> project.getGradle() + .getStartParameter() + .getExcludedTaskNames() + .addAll(Set.of("checkFormatAot", "checkFormatAotTest"))); group = 'org.springframework.samples' version = '3.2.0' @@ -42,9 +51,8 @@ dependencies { testImplementation 'org.springframework.boot:spring-boot-docker-compose' testImplementation 'org.testcontainers:junit-jupiter' testImplementation 'org.testcontainers:mysql' - - checkstyle 'io.spring.javaformat:spring-javaformat-checkstyle' - checkstyle 'io.spring.javaformat:spring-javaformat-gradle-plugin' + +// checkstyle 'io.spring.javaformat:spring-javaformat-checkstyle:0.0.40' } tasks.named('test') {