|
39 | 39 | <jackson.module.scala.version>2.10.0</jackson.module.scala.version> |
40 | 40 | <scalaxml.version>1.3.0</scalaxml.version> |
41 | 41 | <scalatest.version>3.1.1</scalatest.version> |
| 42 | + <shadeBase>org.apache.pinot.\$internal</shadeBase> |
42 | 43 |
|
43 | 44 | <!-- TODO: delete this prop once all the checkstyle warnings are fixed --> |
44 | 45 | <checkstyle.fail.on.violation>false</checkstyle.fail.on.violation> |
|
140 | 141 | </exclusion> |
141 | 142 | </exclusions> |
142 | 143 | </dependency> |
143 | | - <dependency> |
144 | | - <groupId>io.grpc</groupId> |
145 | | - <artifactId>grpc-netty-shaded</artifactId> |
146 | | - <scope>runtime</scope> |
147 | | - </dependency> |
148 | | - <dependency> |
149 | | - <groupId>io.grpc</groupId> |
150 | | - <artifactId>grpc-protobuf</artifactId> |
151 | | - </dependency> |
152 | | - <dependency> |
153 | | - <groupId>io.grpc</groupId> |
154 | | - <artifactId>grpc-stub</artifactId> |
155 | | - </dependency> |
156 | 144 | <dependency> |
157 | 145 | <groupId>org.scala-lang</groupId> |
158 | 146 | <artifactId>scala-library</artifactId> |
|
199 | 187 | </executions> |
200 | 188 | </plugin> |
201 | 189 | <plugin> |
202 | | - <artifactId>maven-assembly-plugin</artifactId> |
203 | | - <configuration> |
204 | | - <descriptorRefs> |
205 | | - <descriptorRef>jar-with-dependencies</descriptorRef> |
206 | | - </descriptorRefs> |
207 | | - </configuration> |
| 190 | + <artifactId>maven-shade-plugin</artifactId> |
208 | 191 | <executions> |
209 | 192 | <execution> |
210 | | - <id>assemble-all</id> |
211 | 193 | <phase>package</phase> |
212 | 194 | <goals> |
213 | | - <goal>single</goal> |
| 195 | + <goal>shade</goal> |
214 | 196 | </goals> |
| 197 | + <configuration> |
| 198 | + <relocations> |
| 199 | + <relocation> |
| 200 | + <pattern>com</pattern> |
| 201 | + <shadedPattern>${shadeBase}.com</shadedPattern> |
| 202 | + <includes> |
| 203 | + <include>com.google.protobuf.**</include> |
| 204 | + <include>com.google.common.**</include> |
| 205 | + </includes> |
| 206 | + </relocation> |
| 207 | + </relocations> |
| 208 | + </configuration> |
215 | 209 | </execution> |
216 | 210 | </executions> |
217 | 211 | </plugin> |
|
334 | 328 | </build> |
335 | 329 |
|
336 | 330 | <dependencies> |
| 331 | + <dependency> |
| 332 | + <groupId>org.apache.pinot</groupId> |
| 333 | + <artifactId>pinot-common</artifactId> |
| 334 | + <exclusions> |
| 335 | + <exclusion> |
| 336 | + <groupId>org.apache.zookeeper</groupId> |
| 337 | + <artifactId>zookeeper</artifactId> |
| 338 | + </exclusion> |
| 339 | + </exclusions> |
| 340 | + </dependency> |
337 | 341 | <dependency> |
338 | 342 | <groupId>org.apache.pinot</groupId> |
339 | 343 | <artifactId>pinot-core</artifactId> |
|
359 | 363 | <groupId>org.apache.httpcomponents</groupId> |
360 | 364 | <artifactId>httpclient</artifactId> |
361 | 365 | </dependency> |
| 366 | + <dependency> |
| 367 | + <groupId>org.apache.httpcomponents</groupId> |
| 368 | + <artifactId>httpcore</artifactId> |
| 369 | + </dependency> |
| 370 | + <dependency> |
| 371 | + <groupId>io.grpc</groupId> |
| 372 | + <artifactId>grpc-netty-shaded</artifactId> |
| 373 | + <scope>runtime</scope> |
| 374 | + </dependency> |
| 375 | + <dependency> |
| 376 | + <groupId>io.grpc</groupId> |
| 377 | + <artifactId>grpc-protobuf</artifactId> |
| 378 | + </dependency> |
| 379 | + <dependency> |
| 380 | + <groupId>io.grpc</groupId> |
| 381 | + <artifactId>grpc-stub</artifactId> |
| 382 | + </dependency> |
362 | 383 | </dependencies> |
363 | | - |
364 | 384 | </project> |
0 commit comments