From 37ee70ae868db15fe0ba35e4712a64b712677a2b Mon Sep 17 00:00:00 2001 From: Joe Grandja Date: Mon, 20 Jun 2022 11:07:44 -0400 Subject: [PATCH] Add dependency update exclusion for spring-javaformat-checkstyle --- build.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build.gradle b/build.gradle index c706588050..b119985c4e 100644 --- a/build.gradle +++ b/build.gradle @@ -102,6 +102,18 @@ updateDependenciesSettings { selection.reject("org.opensaml maintains two different versions, so it must be updated manually"); } } + components.withModule("io.spring.javaformat:spring-javaformat-gradle-plugin") { selection -> + ModuleComponentIdentifier candidate = selection.getCandidate(); + if (!candidate.getVersion().equals(selection.getCurrentVersion())) { + selection.reject("spring-javaformat-gradle-plugin updates break checkstyle"); + } + } + components.withModule("io.spring.javaformat:spring-javaformat-checkstyle") { selection -> + ModuleComponentIdentifier candidate = selection.getCandidate(); + if (!candidate.getVersion().equals(selection.getCurrentVersion())) { + selection.reject("spring-javaformat-checkstyle updates break checkstyle"); + } + } } } }