diff --git a/build.gradle b/build.gradle index 97af8d46ba..f62b201422 100644 --- a/build.gradle +++ b/build.gradle @@ -58,6 +58,12 @@ updateDependenciesSettings { selection.reject("jython updates break integration tests"); } } + components.withModule("com.nimbusds:nimbus-jose-jwt") { selection -> + ModuleComponentIdentifier candidate = selection.getCandidate(); + if (!candidate.getVersion().equals(selection.getCurrentVersion())) { + selection.reject("nimbus-jose-jwt gets updated when oauth2-oidc-sdk is updated to ensure consistency"); + } + } } } }