Skip to content

Commit 37ee70a

Browse files
committed
Add dependency update exclusion for spring-javaformat-checkstyle
1 parent 8ea3736 commit 37ee70a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,18 @@ updateDependenciesSettings {
102102
selection.reject("org.opensaml maintains two different versions, so it must be updated manually");
103103
}
104104
}
105+
components.withModule("io.spring.javaformat:spring-javaformat-gradle-plugin") { selection ->
106+
ModuleComponentIdentifier candidate = selection.getCandidate();
107+
if (!candidate.getVersion().equals(selection.getCurrentVersion())) {
108+
selection.reject("spring-javaformat-gradle-plugin updates break checkstyle");
109+
}
110+
}
111+
components.withModule("io.spring.javaformat:spring-javaformat-checkstyle") { selection ->
112+
ModuleComponentIdentifier candidate = selection.getCandidate();
113+
if (!candidate.getVersion().equals(selection.getCurrentVersion())) {
114+
selection.reject("spring-javaformat-checkstyle updates break checkstyle");
115+
}
116+
}
105117
}
106118
}
107119
}

0 commit comments

Comments
 (0)