From 332eca8279bb145b3b272d93806f4c89f8a8923f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Thu, 17 Feb 2022 13:37:27 +0100 Subject: [PATCH] Remove --illegal-access errors resulting from Google Guice - Pulsar IO, Offloaders and Pulsar SQL - Bump Guice to 5.1.0 (#14300) * Remove --illegal-access errors resulting from Google Guice - Batch Data Generator connector * and jcloud-shaded * use dependencyManagement * fix pulsar-sql --- pom.xml | 14 +++++++++++++- pulsar-io/data-generator/pom.xml | 12 ------------ pulsar-sql/presto-distribution/LICENSE | 3 +-- pulsar-sql/presto-distribution/pom.xml | 12 ++++-------- tiered-storage/jcloud/pom.xml | 13 ------------- 5 files changed, 18 insertions(+), 36 deletions(-) diff --git a/pom.xml b/pom.xml index 1945231cd0b82..730bb9bfe1d41 100644 --- a/pom.xml +++ b/pom.xml @@ -147,7 +147,7 @@ flexible messaging model and an intuitive client API. 1.10.2 2.10.5 2.4.0 - 5.0.1 + 5.1.0 3.8.11.2 8.0.11 42.2.25 @@ -624,6 +624,18 @@ flexible messaging model and an intuitive client API. ${guava.version} + + com.google.inject + guice + ${guice.version} + + + + com.google.inject.extensions + guice-assistedinject + ${guice.version} + + org.apache.commons commons-lang3 diff --git a/pulsar-io/data-generator/pom.xml b/pulsar-io/data-generator/pom.xml index 47e8e4d6cb62b..0bd19c94cb7dc 100644 --- a/pulsar-io/data-generator/pom.xml +++ b/pulsar-io/data-generator/pom.xml @@ -49,18 +49,6 @@ jfairy 0.5.9 - - com.google.inject - guice - ${guice.version} - runtime - - - com.google.inject.extensions - guice-assistedinject - ${guice.version} - runtime - org.apache.avro diff --git a/pulsar-sql/presto-distribution/LICENSE b/pulsar-sql/presto-distribution/LICENSE index 0941f4ed43af8..2c3aec78637be 100644 --- a/pulsar-sql/presto-distribution/LICENSE +++ b/pulsar-sql/presto-distribution/LICENSE @@ -225,8 +225,7 @@ The Apache Software License, Version 2.0 - listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar - failureaccess-1.0.1.jar * Google Guice - - guice-4.2.3.jar - - guice-multibindings-4.2.0.jar + - guice-5.1.0.jar * Apache Commons - commons-math3-3.6.1.jar - commons-compress-1.21.jar diff --git a/pulsar-sql/presto-distribution/pom.xml b/pulsar-sql/presto-distribution/pom.xml index df2795b0273b6..eba0b1bc7b166 100644 --- a/pulsar-sql/presto-distribution/pom.xml +++ b/pulsar-sql/presto-distribution/pom.xml @@ -38,7 +38,6 @@ 0.170 2.6 0.0.12 - 4.2.0 2.12.6 @@ -100,6 +99,10 @@ javax.activation activation + + com.google.inject.extensions + guice-multibindings + @@ -137,13 +140,6 @@ ${objectsize.version} - - - com.google.inject.extensions - guice-multibindings - ${guice.version} - - diff --git a/tiered-storage/jcloud/pom.xml b/tiered-storage/jcloud/pom.xml index 00ced64f0428f..fc494b89a1bdf 100644 --- a/tiered-storage/jcloud/pom.xml +++ b/tiered-storage/jcloud/pom.xml @@ -99,19 +99,6 @@ ${jclouds.version} provided - - - com.google.inject - guice - ${guice.version} - runtime - - - com.google.inject.extensions - guice-assistedinject - ${guice.version} - runtime - javax.xml.bind