From 38a230e5f36b03b06ce26f2f88e12337ed4bc7c4 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Mon, 5 Apr 2021 21:56:30 -0500 Subject: [PATCH] Reject org.opensaml updates There are two versions of org.opensaml that are supported, so we need to manually update opensaml dependencies. Issue gh-9542 --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle b/build.gradle index f62b201422..c40f919252 100644 --- a/build.gradle +++ b/build.gradle @@ -64,6 +64,14 @@ updateDependenciesSettings { selection.reject("nimbus-jose-jwt gets updated when oauth2-oidc-sdk is updated to ensure consistency"); } } + components.all { selection -> + ModuleComponentIdentifier candidate = selection.getCandidate(); + // Do not compare version due to multiple versions existing + // will cause opensaml 3.x to be updated to 4.x + if (candidate.getGroup().equals("org.opensaml")) { + selection.reject("org.opensaml maintains two different versions, so it must be updated manually"); + } + } } } }