Skip to content

Commit 8cbb972

Browse files
committed
Add dependency update exclusion for spring-javaformat-checkstyle
1 parent 539a11d commit 8cbb972

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
@@ -95,6 +95,18 @@ updateDependenciesSettings {
9595
selection.reject("org.opensaml maintains two different versions, so it must be updated manually");
9696
}
9797
}
98+
components.withModule("io.spring.javaformat:spring-javaformat-gradle-plugin") { selection ->
99+
ModuleComponentIdentifier candidate = selection.getCandidate();
100+
if (!candidate.getVersion().equals(selection.getCurrentVersion())) {
101+
selection.reject("spring-javaformat-gradle-plugin updates break checkstyle");
102+
}
103+
}
104+
components.withModule("io.spring.javaformat:spring-javaformat-checkstyle") { selection ->
105+
ModuleComponentIdentifier candidate = selection.getCandidate();
106+
if (!candidate.getVersion().equals(selection.getCurrentVersion())) {
107+
selection.reject("spring-javaformat-checkstyle updates break checkstyle");
108+
}
109+
}
98110
}
99111
}
100112
}

0 commit comments

Comments
 (0)