File tree Expand file tree Collapse file tree 3 files changed +7
-35
lines changed Expand file tree Collapse file tree 3 files changed +7
-35
lines changed Original file line number Diff line number Diff line change 51
51
<version >${project.version} </version >
52
52
</dependency >
53
53
<!--
54
- We need to define guava and protobuf here because we need to change the scope of both from
54
+ We need to define protobuf here because we need to change the scope of both from
55
55
provided to compile. If we don't do this we can't shade these libraries.
56
56
-->
57
- <dependency >
58
- <groupId >com.google.guava</groupId >
59
- <artifactId >guava</artifactId >
60
- <version >${connect.guava.version} </version >
61
- <scope >compile</scope >
62
- </dependency >
63
57
<dependency >
64
58
<groupId >com.google.protobuf</groupId >
65
59
<artifactId >protobuf-java</artifactId >
137
131
<include >io.grpc.**</include >
138
132
</includes >
139
133
</relocation >
140
- <relocation >
141
- <pattern >com.google.common</pattern >
142
- <shadedPattern >${spark.shade.packageName} .connect.guava</shadedPattern >
143
- </relocation >
144
134
<relocation >
145
135
<pattern >com.google</pattern >
146
136
<shadedPattern >${spark.shade.packageName} .com.google</shadedPattern >
Original file line number Diff line number Diff line change 47
47
<groupId >com.google.protobuf</groupId >
48
48
<artifactId >protobuf-java</artifactId >
49
49
</dependency >
50
+ <!--
51
+ SPARK-45593: spark connect relies on a specific version of Guava, We perform shading
52
+ of the Guava library within the connect-common module to ensure both connect-server and
53
+ connect-client modules maintain consistent and accurate Guava dependencies.
54
+ -->
50
55
<dependency >
51
56
<groupId >com.google.guava</groupId >
52
57
<artifactId >guava</artifactId >
154
159
<includes >
155
160
<include >org.spark-project.spark:unused</include >
156
161
<include >com.google.guava:guava</include >
162
+ <include >com.google.guava:failureaccess</include >
157
163
<include >org.apache.tomcat:annotations-api</include >
158
164
</includes >
159
165
</artifactSet >
Original file line number Diff line number Diff line change 51
51
<groupId >org.apache.spark</groupId >
52
52
<artifactId >spark-connect-common_${scala.binary.version}</artifactId >
53
53
<version >${project.version} </version >
54
- <exclusions >
55
- <exclusion >
56
- <groupId >com.google.guava</groupId >
57
- <artifactId >guava</artifactId >
58
- </exclusion >
59
- </exclusions >
60
54
</dependency >
61
55
<dependency >
62
56
<groupId >org.apache.spark</groupId >
156
150
<groupId >org.scala-lang.modules</groupId >
157
151
<artifactId >scala-parallel-collections_${scala.binary.version}</artifactId >
158
152
</dependency >
159
- <dependency >
160
- <groupId >com.google.guava</groupId >
161
- <artifactId >guava</artifactId >
162
- <version >${connect.guava.version} </version >
163
- <scope >compile</scope >
164
- </dependency >
165
- <dependency >
166
- <groupId >com.google.guava</groupId >
167
- <artifactId >failureaccess</artifactId >
168
- <version >${guava.failureaccess.version} </version >
169
- </dependency >
170
153
<dependency >
171
154
<groupId >com.google.protobuf</groupId >
172
155
<artifactId >protobuf-java</artifactId >
306
289
</includes >
307
290
</artifactSet >
308
291
<relocations >
309
- <relocation >
310
- <pattern >com.google.common</pattern >
311
- <shadedPattern >${spark.shade.packageName} .connect.guava</shadedPattern >
312
- <includes >
313
- <include >com.google.common.**</include >
314
- </includes >
315
- </relocation >
316
292
<relocation >
317
293
<pattern >com.google.thirdparty</pattern >
318
294
<shadedPattern >${spark.shade.packageName} .connect.guava</shadedPattern >
You can’t perform that action at this time.
0 commit comments