瀏覽代碼

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
Rob Winch 4 年之前
父節點
當前提交
38a230e5f3
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      build.gradle

+ 8 - 0
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");
+				}
+			}
 		}
 	}
 }