|
337 | 337 | </exclusion>
|
338 | 338 | </exclusions>
|
339 | 339 | </dependency>
|
| 340 | + |
| 341 | + <!-- Shaded deps marked as provided. These are promoted to compile scope |
| 342 | + in the modules where we want the shaded classes to appear in the |
| 343 | + associated jar. --> |
| 344 | + <dependency> |
| 345 | + <groupId>org.eclipse.jetty</groupId> |
| 346 | + <artifactId>jetty-http</artifactId> |
| 347 | + <version>${jetty.version}</version> |
| 348 | + <scope>provided</scope> |
| 349 | + </dependency> |
340 | 350 | <dependency>
|
341 | 351 | <groupId>org.eclipse.jetty</groupId>
|
342 | 352 | <artifactId>jetty-util</artifactId>
|
343 | 353 | <version>${jetty.version}</version>
|
| 354 | + <scope>provided</scope> |
344 | 355 | </dependency>
|
345 | 356 | <dependency>
|
346 | 357 | <groupId>org.eclipse.jetty</groupId>
|
347 | 358 | <artifactId>jetty-security</artifactId>
|
348 | 359 | <version>${jetty.version}</version>
|
| 360 | + <scope>provided</scope> |
349 | 361 | </dependency>
|
350 | 362 | <dependency>
|
351 | 363 | <groupId>org.eclipse.jetty</groupId>
|
352 | 364 | <artifactId>jetty-plus</artifactId>
|
353 | 365 | <version>${jetty.version}</version>
|
| 366 | + <scope>provided</scope> |
354 | 367 | </dependency>
|
355 | 368 | <dependency>
|
356 | 369 | <groupId>org.eclipse.jetty</groupId>
|
357 | 370 | <artifactId>jetty-server</artifactId>
|
358 | 371 | <version>${jetty.version}</version>
|
| 372 | + <scope>provided</scope> |
359 | 373 | </dependency>
|
360 | 374 | <dependency>
|
361 | 375 | <groupId>com.google.guava</groupId>
|
362 | 376 | <artifactId>guava</artifactId>
|
363 | 377 | <version>14.0.1</version>
|
364 | 378 | <scope>provided</scope>
|
365 | 379 | </dependency>
|
| 380 | + <!-- End of shaded deps --> |
| 381 | + |
366 | 382 | <dependency>
|
367 | 383 | <groupId>org.apache.commons</groupId>
|
368 | 384 | <artifactId>commons-lang3</artifactId>
|
|
1276 | 1292 | <shadedArtifactAttached>false</shadedArtifactAttached>
|
1277 | 1293 | <artifactSet>
|
1278 | 1294 | <includes>
|
| 1295 | + <!-- At a minimum we must include this to force effective pom generation --> |
1279 | 1296 | <include>org.spark-project.spark:unused</include>
|
| 1297 | + |
| 1298 | + <include>org.eclipse.jetty:jetty-io</include> |
| 1299 | + <include>org.eclipse.jetty:jetty-http</include> |
| 1300 | + <include>org.eclipse.jetty:jetty-plus</include> |
| 1301 | + <include>org.eclipse.jetty:jetty-security</include> |
| 1302 | + <include>org.eclipse.jetty:jetty-util</include> |
| 1303 | + <include>org.eclipse.jetty:jetty-server</include> |
| 1304 | + <include>com.google.guava:guava</include> |
1280 | 1305 | </includes>
|
1281 | 1306 | </artifactSet>
|
1282 | 1307 | <relocations>
|
| 1308 | + <relocation> |
| 1309 | + <pattern>org.eclipse.jetty</pattern> |
| 1310 | + <shadedPattern>org.spark-project.jetty</shadedPattern> |
| 1311 | + <includes> |
| 1312 | + <include>org.eclipse.jetty.**</include> |
| 1313 | + </includes> |
| 1314 | + </relocation> |
1283 | 1315 | <relocation>
|
1284 | 1316 | <pattern>com.google.common</pattern>
|
1285 | 1317 | <shadedPattern>org.spark-project.guava</shadedPattern>
|
|
0 commit comments