From 26a4c0bef937a0105c9851be9ddea61e857cee7e Mon Sep 17 00:00:00 2001 From: Craig Perkins Date: Thu, 18 Jul 2024 12:33:30 -0400 Subject: [PATCH] Remove unused dependancy Apache CXF (#4580) --- build.gradle | 5 ----- .../auth/http/jwt/keybyoidc/CxfTestTools.java | 22 ------------------- 2 files changed, 27 deletions(-) delete mode 100644 src/test/java/com/amazon/dlic/auth/http/jwt/keybyoidc/CxfTestTools.java diff --git a/build.gradle b/build.gradle index 76b95df7eb..9aa009fb90 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,6 @@ buildscript { common_utils_version = System.getProperty("common_utils.version", '3.0.0.0-SNAPSHOT') kafka_version = '3.7.1' - apache_cxf_version = '4.0.4' open_saml_version = '4.3.2' one_login_java_saml = '2.9.0' jjwt_version = '0.12.6' @@ -599,10 +598,6 @@ dependencies { runtimeOnly 'net.minidev:accessors-smart:2.5.1' - runtimeOnly "org.apache.cxf:cxf-core:${apache_cxf_version}" - implementation "org.apache.cxf:cxf-rt-rs-json-basic:${apache_cxf_version}" - runtimeOnly "org.apache.cxf:cxf-rt-security:${apache_cxf_version}" - runtimeOnly 'com.sun.activation:jakarta.activation:1.2.2' runtimeOnly 'com.eclipsesource.minimal-json:minimal-json:0.9.5' runtimeOnly 'commons-codec:commons-codec:1.17.0' diff --git a/src/test/java/com/amazon/dlic/auth/http/jwt/keybyoidc/CxfTestTools.java b/src/test/java/com/amazon/dlic/auth/http/jwt/keybyoidc/CxfTestTools.java deleted file mode 100644 index b2958193c2..0000000000 --- a/src/test/java/com/amazon/dlic/auth/http/jwt/keybyoidc/CxfTestTools.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * - * The OpenSearch Contributors require contributions made to - * this file be licensed under the Apache-2.0 license or a - * compatible open source license. - * - * Modifications Copyright OpenSearch Contributors. See - * GitHub history for details. - */ - -package com.amazon.dlic.auth.http.jwt.keybyoidc; - -import org.apache.cxf.jaxrs.json.basic.JsonMapObject; -import org.apache.cxf.jaxrs.json.basic.JsonMapObjectReaderWriter; - -class CxfTestTools { - - static String toJson(JsonMapObject jsonMapObject) { - return new JsonMapObjectReaderWriter().toJson(jsonMapObject); - } -}