From 8394fae8e6fca37ad8f3e10ade82d8d2507585d1 Mon Sep 17 00:00:00 2001 From: vasraz Date: Tue, 28 Apr 2020 16:57:56 +0100 Subject: [PATCH] Remove all thrift's dependencies Remove unused/duplicated dependencies Change-Id: Ic2239acc5ddde1d0874b5139c228934ec1e61cd0 Signed-off-by: Vasyl Razinkov Issue-ID: SDC-2985 --- asdctool/pom.xml | 5 ----- catalog-be/pom.xml | 5 ----- catalog-dao/pom.xml | 10 +++++----- .../org/openecomp/sdc/be/utils/CassandraTestHelper.java | 11 +++++------ catalog-model/pom.xml | 5 ----- onboarding/pom.xml | 10 +--------- pom.xml | 14 ++++---------- test-apis-ci/pom.xml | 5 ----- 8 files changed, 15 insertions(+), 50 deletions(-) diff --git a/asdctool/pom.xml b/asdctool/pom.xml index dac5063311..534c8811bd 100644 --- a/asdctool/pom.xml +++ b/asdctool/pom.xml @@ -393,11 +393,6 @@ ${cassandra.driver.version} compile - - org.apache.thrift - libthrift - ${libthrift.version} - diff --git a/catalog-be/pom.xml b/catalog-be/pom.xml index 637dcc4004..3a9e72d972 100644 --- a/catalog-be/pom.xml +++ b/catalog-be/pom.xml @@ -432,11 +432,6 @@ ${cassandra.driver.version} compile - - org.apache.thrift - libthrift - ${libthrift.version} - diff --git a/catalog-dao/pom.xml b/catalog-dao/pom.xml index f89e5f7efc..7f37fdfe8b 100644 --- a/catalog-dao/pom.xml +++ b/catalog-dao/pom.xml @@ -308,6 +308,11 @@ Modifications copyright (c) 2018 Nokia ${cassandra.driver.version} provided + + com.datastax.oss + java-driver-core + ${java.driver.core.version} + org.cassandraunit cassandra-unit @@ -330,11 +335,6 @@ Modifications copyright (c) 2018 Nokia 3.11.3 test - - org.apache.thrift - libthrift - ${libthrift.version} - diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/utils/CassandraTestHelper.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/utils/CassandraTestHelper.java index d97f7d3fa4..eec9b20fbd 100644 --- a/catalog-dao/src/test/java/org/openecomp/sdc/be/utils/CassandraTestHelper.java +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/utils/CassandraTestHelper.java @@ -22,23 +22,22 @@ package org.openecomp.sdc.be.utils; import com.datastax.driver.core.Cluster; +import java.io.IOException; import org.apache.cassandra.exceptions.ConfigurationException; -import org.apache.thrift.transport.TTransportException; import org.cassandraunit.utils.EmbeddedCassandraServerHelper; -import java.io.IOException; - public class CassandraTestHelper { + public static final String SERVER = "localhost"; - public static final int BINARY_PORT = 9142; + private static final int BINARY_PORT = 9142; - public CassandraTestHelper() { + private CassandraTestHelper() { } public static void startServer() { try { EmbeddedCassandraServerHelper.startEmbeddedCassandra(80000); - } catch(TTransportException | ConfigurationException | IOException ex) { + } catch (ConfigurationException | IOException ex) { throw new RuntimeException(ex); } } diff --git a/catalog-model/pom.xml b/catalog-model/pom.xml index 2b70c4dfb9..6a4d6bc317 100644 --- a/catalog-model/pom.xml +++ b/catalog-model/pom.xml @@ -190,11 +190,6 @@ ${cassandra.driver.version} provided - - org.apache.thrift - libthrift - ${libthrift.version} - diff --git a/onboarding/pom.xml b/onboarding/pom.xml index dda15ea941..154f8970a8 100644 --- a/onboarding/pom.xml +++ b/onboarding/pom.xml @@ -71,17 +71,15 @@ 3.2.4 1.3.3 1.10 - 4.1 2.1 2.5 2.6 3.4 3.1.16 - 3.4.0 + 3.8.0 3.4 2.4.8 1.5.8 - 2.3.1 2.2 2.3.26-incubating 5.3.6.Final @@ -97,12 +95,10 @@ 2.9.9 ${jackson.version} ${jackson.version} - 1.9.13 1.58 9.4.11.v20180605 1.19.1 1.18.1 - 4.12 1.2.3 1.10.19 1.9.13 @@ -114,17 +110,13 @@ 1.17 4.3.18.RELEASE 2.0.8 - 6.14.3 4.4.1 - 2.0.1 1.0.1 1.0.2 1.0.2 1.0.0 ${project.version} - 2.4.1.Final 1.61 - 1.6.1 diff --git a/pom.xml b/pom.xml index 1a8c9b857e..846b93ad94 100644 --- a/pom.xml +++ b/pom.xml @@ -48,14 +48,12 @@ Modifications copyright (c) 2018-2019 Nokia 18.0 0.3.1 4.3.18.RELEASE - 3.2.3.RELEASE - 2.0.1.RELEASE 2.27 4.1.36.Final 3.1.0 2.18.0 2.6.0 - 3.5.0.1 + 4.3.1.0 2.1.8 1.18.12 1.9.3 @@ -66,10 +64,6 @@ Modifications copyright (c) 2018-2019 Nokia 4.1 2.0.1 - - 2.4.0 - 1.0.0-SNAPSHOT - 1.0.0-SNAPSHOT 9.4.18.v20190429 @@ -119,7 +113,6 @@ Modifications copyright (c) 2018-2019 Nokia 5.6.0 3.10.0 6.14.3 - 3.0.3 2.4.0 0.11 2.1 @@ -142,8 +135,7 @@ Modifications copyright (c) 2018-2019 Nokia ${project.basedir} pom.xml,src/test - 3.6.0 - 0.12.0 + 3.8.0 nexus nexus @@ -167,6 +159,8 @@ Modifications copyright (c) 2018-2019 Nokia 0.8.5 + 4.5.1 + diff --git a/test-apis-ci/pom.xml b/test-apis-ci/pom.xml index 456aeae1e7..c71c666095 100644 --- a/test-apis-ci/pom.xml +++ b/test-apis-ci/pom.xml @@ -415,11 +415,6 @@ ${cassandra.driver.version} compile - - org.apache.thrift - libthrift - ${libthrift.version} - -- 2.16.6