diff --git a/build.gradle b/build.gradle index b69bfe2749..3d0f044633 100644 --- a/build.gradle +++ b/build.gradle @@ -45,6 +45,14 @@ updateDependenciesSettings { releaseCandidatesVersions() milestoneVersions() snapshotVersions() + addRule { components -> + components.withModule("commons-codec:commons-codec") { selection -> + ModuleComponentIdentifier candidate = selection.getCandidate(); + if (!candidate.getVersion().equals(selection.getCurrentVersion())) { + selection.reject("commons-codec updates break saml tests"); + } + } + } } }