|
40 | 40 | <groupId>${project.parent.groupId}</groupId> |
41 | 41 | <artifactId>clickhouse-http-client</artifactId> |
42 | 42 | <version>${revision}</version> |
43 | | - <optional>true</optional> |
44 | 43 | </dependency> |
45 | 44 | <dependency> |
46 | 45 | <groupId>org.apache.commons</groupId> |
47 | 46 | <artifactId>commons-compress</artifactId> |
48 | | - <optional>true</optional> |
49 | 47 | </dependency> |
50 | 48 |
|
51 | 49 | <dependency> |
52 | 50 | <groupId>org.lz4</groupId> |
53 | 51 | <artifactId>lz4-pure-java</artifactId> |
54 | | - <optional>true</optional> |
55 | 52 | </dependency> |
56 | 53 | <dependency> |
57 | 54 | <groupId>com.google.code.gson</groupId> |
|
100 | 97 | <artifactId>zstd-jni</artifactId> |
101 | 98 | <scope>provided</scope> |
102 | 99 | </dependency> |
| 100 | + <dependency> |
| 101 | + <groupId>org.slf4j</groupId> |
| 102 | + <artifactId>slf4j-api</artifactId> |
| 103 | + <version>${slf4j.version}</version> |
| 104 | + </dependency> |
103 | 105 |
|
| 106 | + <!-- Test Dependencies --> |
104 | 107 | <dependency> |
105 | 108 | <groupId>${project.parent.groupId}</groupId> |
106 | 109 | <artifactId>clickhouse-client</artifactId> |
|
530 | 533 | </filters> |
531 | 534 | </configuration> |
532 | 535 | </execution> |
| 536 | + |
| 537 | + |
| 538 | + <execution> |
| 539 | + <id>shade-all-v2</id> |
| 540 | + <phase>package</phase> |
| 541 | + <goals> |
| 542 | + <goal>shade</goal> |
| 543 | + </goals> |
| 544 | + <configuration> |
| 545 | + <shadedArtifactAttached>true</shadedArtifactAttached> |
| 546 | + <createDependencyReducedPom>true</createDependencyReducedPom> |
| 547 | + <createSourcesJar>true</createSourcesJar> |
| 548 | + <promoteTransitiveDependencies>true</promoteTransitiveDependencies> |
| 549 | + <shadedClassifierName>shaded-all</shadedClassifierName> |
| 550 | + <relocations> |
| 551 | + <relocation> |
| 552 | + <pattern>com.google</pattern> |
| 553 | + <shadedPattern>${shade.base}.google</shadedPattern> |
| 554 | + </relocation> |
| 555 | + <relocation> |
| 556 | + <pattern>io.opencensus</pattern> |
| 557 | + <shadedPattern>${shade.base}.opencensus</shadedPattern> |
| 558 | + </relocation> |
| 559 | + <relocation> |
| 560 | + <pattern>io.perfmark</pattern> |
| 561 | + <shadedPattern>${shade.base}.perfmark</shadedPattern> |
| 562 | + </relocation> |
| 563 | + <relocation> |
| 564 | + <pattern>net.jpountz</pattern> |
| 565 | + <shadedPattern>${shade.base}.jpountz</shadedPattern> |
| 566 | + </relocation> |
| 567 | + <relocation> |
| 568 | + <pattern>okio</pattern> |
| 569 | + <shadedPattern>${shade.base}.okio</shadedPattern> |
| 570 | + </relocation> |
| 571 | + <relocation> |
| 572 | + <pattern>org.apache</pattern> |
| 573 | + <shadedPattern>${shade.base}.apache</shadedPattern> |
| 574 | + </relocation> |
| 575 | + </relocations> |
| 576 | + <transformers> |
| 577 | + <transformer |
| 578 | + implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" /> |
| 579 | + <transformer |
| 580 | + implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer" /> |
| 581 | + <transformer |
| 582 | + implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| 583 | + <transformer |
| 584 | + implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 585 | + <manifestEntries> |
| 586 | + <Automatic-Module-Name>${project.groupId}.jdbc</Automatic-Module-Name> |
| 587 | + <Main-Class>${mainClass}</Main-Class> |
| 588 | + <Specification-Title>${spec.title}</Specification-Title> |
| 589 | + <Specification-Version>${spec.version}</Specification-Version> |
| 590 | + </manifestEntries> |
| 591 | + </transformer> |
| 592 | + </transformers> |
| 593 | + <filters> |
| 594 | + <filter> |
| 595 | + <artifact>*:*</artifact> |
| 596 | + <excludes> |
| 597 | + <exclude>google/**</exclude> |
| 598 | + <exclude>org/checkerframework/**</exclude> |
| 599 | + <exclude>org/codehaus/**</exclude> |
| 600 | + <exclude>**/module-info.class</exclude> |
| 601 | + </excludes> |
| 602 | + </filter> |
| 603 | + </filters> |
| 604 | + </configuration> |
| 605 | + </execution> |
533 | 606 | </executions> |
534 | 607 | </plugin> |
535 | 608 | <plugin> |
|
0 commit comments