Skip to content

Commit 8dd90d4

Browse files
authored
Merge pull request #2626 from ClickHouse/repo_shaded_artiffact
[repo] Add separate artifact with all dependencies.
2 parents 50371df + e6cfb8b commit 8dd90d4

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<parent>
7+
<groupId>com.clickhouse</groupId>
8+
<artifactId>clickhouse-java</artifactId>
9+
<version>${revision}</version>
10+
<relativePath>../../pom.xml</relativePath>
11+
</parent>
12+
13+
<artifactId>clickhouse-jdbc-all</artifactId>
14+
<version>${revision}</version>
15+
<packaging>jar</packaging>
16+
17+
<name>(Package) ClickHouse JDBC All Dependencies</name>
18+
<description>JDBC driver for ClickHouse</description>
19+
<url>https://github.com/ClickHouse/clickhouse-java/tree/main/clickhouse-jdbc-all</url>
20+
21+
<dependencies>
22+
<dependency>
23+
<groupId>com.clickhouse</groupId>
24+
<artifactId>clickhouse-jdbc</artifactId>
25+
<version>${project.version}</version>
26+
<classifier>all</classifier>
27+
</dependency>
28+
</dependencies>
29+
30+
<build>
31+
<plugins>
32+
<plugin>
33+
<groupId>org.apache.maven.plugins</groupId>
34+
<artifactId>maven-shade-plugin</artifactId>
35+
36+
<version>3.2.4</version>
37+
<executions>
38+
<execution>
39+
<phase>package</phase>
40+
<goals>
41+
<goal>shade</goal>
42+
</goals>
43+
<configuration>
44+
<shadedArtifactAttached>false</shadedArtifactAttached>
45+
<createDependencyReducedPom>true</createDependencyReducedPom>
46+
<createSourcesJar>true</createSourcesJar>
47+
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
48+
<shadedClassifierName></shadedClassifierName>
49+
</configuration>
50+
</execution>
51+
</executions>
52+
</plugin>
53+
</plugins>
54+
</build>
55+
</project>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
<module>clickhouse-jdbc</module>
4949
<module>jdbc-v2</module>
5050
<module>clickhouse-r2dbc</module>
51+
<module>packages/clickhouse-jdbc-all</module>
5152
<!--<module>performance</module> -->
5253
</modules>
5354

0 commit comments

Comments
 (0)