Skip to content

Commit

Permalink
Remove --illegal-access errors resulting from Google Guice - Pulsar I…
Browse files Browse the repository at this point in the history
…O, Offloaders and Pulsar SQL - Bump Guice to 5.1.0 (apache#14300)

* Remove --illegal-access errors resulting from Google Guice - Batch Data Generator connector

* and jcloud-shaded

* use dependencyManagement

* fix pulsar-sql

(cherry picked from commit 332eca8)
  • Loading branch information
nicoloboschi committed Mar 1, 2022
1 parent 0b6667b commit 7953fed
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 36 deletions.
14 changes: 13 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ flexible messaging model and an intuitive client API.</description>
<avro.version>1.10.2</avro.version>
<joda.version>2.10.5</joda.version>
<jclouds.version>2.4.0</jclouds.version>
<guice.version>5.0.1</guice.version>
<guice.version>5.1.0</guice.version>
<sqlite-jdbc.version>3.8.11.2</sqlite-jdbc.version>
<mysql-jdbc.version>8.0.11</mysql-jdbc.version>
<postgresql-jdbc.version>42.2.25</postgresql-jdbc.version>
Expand Down Expand Up @@ -604,6 +604,18 @@ flexible messaging model and an intuitive client API.</description>
<version>${guava.version}</version>
</dependency>

<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>${guice.version}</version>
</dependency>

<dependency>
<groupId>com.google.inject.extensions</groupId>
<artifactId>guice-assistedinject</artifactId>
<version>${guice.version}</version>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
Expand Down
12 changes: 0 additions & 12 deletions pulsar-io/data-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,6 @@
<artifactId>jfairy</artifactId>
<version>0.5.9</version>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>${guice.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.inject.extensions</groupId>
<artifactId>guice-assistedinject</artifactId>
<version>${guice.version}</version>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>org.apache.avro</groupId>
Expand Down
3 changes: 1 addition & 2 deletions pulsar-sql/presto-distribution/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,7 @@ The Apache Software License, Version 2.0
- guava-31.0.1-jre.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
Expand Down
12 changes: 4 additions & 8 deletions pulsar-sql/presto-distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
<airlift.version>0.170</airlift.version>
<objenesis.version>2.6</objenesis.version>
<objectsize.version>0.0.12</objectsize.version>
<guice.version>4.2.0</guice.version>
<jackson.version>2.12.6</jackson.version>
<!--fix Security Vulnerabilities-->
<!--https://www.cvedetails.com/vulnerability-list/vendor_id-15866/product_id-42991/Fasterxml-Jackson-databind.html-->
Expand Down Expand Up @@ -103,6 +102,10 @@
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.inject.extensions</groupId>
<artifactId>guice-multibindings</artifactId>
</exclusion>
</exclusions>
</dependency>

Expand Down Expand Up @@ -165,13 +168,6 @@
</exclusions>
</dependency>

<!-- make sure guice is set to the correct version -->
<dependency>
<groupId>com.google.inject.extensions</groupId>
<artifactId>guice-multibindings</artifactId>
<version>${guice.version}</version>
</dependency>

<!-- jackson dependencies -->

<dependency>
Expand Down
13 changes: 0 additions & 13 deletions tiered-storage/jcloud/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,6 @@
<version>${jclouds.version}</version>
<scope>provided</scope>
</dependency>
<!-- https://github.com/apache/jclouds/pull/123/files-->
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>${guice.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.inject.extensions</groupId>
<artifactId>guice-assistedinject</artifactId>
<version>${guice.version}</version>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>javax.xml.bind</groupId>
Expand Down

0 comments on commit 7953fed

Please sign in to comment.