Skip to content

Commit a80327e

Browse files
committed
use dep version override instead of exclusion
1 parent 884f9c8 commit a80327e

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

google-cloud-bigquery/pom.xml

+17-10
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
</parent>
1616
<properties>
1717
<site.installationModule>google-cloud-bigquery</site.installationModule>
18+
<netty.version>4.1.118.Final</netty.version>
1819
</properties>
1920
<dependencies>
2021
<dependency>
@@ -116,16 +117,22 @@
116117
<dependency>
117118
<groupId>org.apache.arrow</groupId>
118119
<artifactId>arrow-memory-netty</artifactId>
119-
<!--
120-
Due to JDK8 requirement, we are forced to use arrow version below v18
121-
which has io.netty:netty-common a dep. and its vulnerabilities
122-
-->
123-
<exclusions>
124-
<exclusion>
125-
<groupId>io.netty</groupId>
126-
<artifactId>netty-common</artifactId>
127-
</exclusion>
128-
</exclusions>
120+
<scope>runtime</scope>
121+
</dependency>
122+
<!--
123+
Define io.netty versions to override org.apache.arrow:arrow-memory-netty
124+
transitive dependency versions which contains vulnerabilities.
125+
-->
126+
<dependency>
127+
<groupId>io.netty</groupId>
128+
<artifactId>netty-common</artifactId>
129+
<version>${netty.version}</version>
130+
<scope>runtime</scope>
131+
</dependency>
132+
<dependency>
133+
<groupId>io.netty</groupId>
134+
<artifactId>netty-buffer</artifactId>
135+
<version>${netty.version}</version>
129136
<scope>runtime</scope>
130137
</dependency>
131138

0 commit comments

Comments
 (0)