-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mzitnik
committed
Mar 21, 2024
1 parent
bdf3314
commit 6596fa5
Showing
1 changed file
with
171 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,171 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>com.clickhouse</groupId> | ||
<artifactId>clickhouse-java</artifactId> | ||
<version>${revision}</version> | ||
</parent> | ||
|
||
<artifactId>client-v2</artifactId> | ||
<packaging>jar</packaging> | ||
|
||
<name>ClickHouse Client API</name> | ||
<description>New client api for ClickHouse</description> | ||
<url>https://github.com/ClickHouse/clickhouse-java/tree/main/clickhouse-client-api</url> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>${project.parent.groupId}</groupId> | ||
<artifactId>clickhouse-client</artifactId> | ||
<version>${revision}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>${project.parent.groupId}</groupId> | ||
<artifactId>clickhouse-http-client</artifactId> | ||
<version>${revision}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.httpcomponents.client5</groupId> | ||
<artifactId>httpclient5</artifactId> | ||
<version>5.2.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.httpcomponents.core5</groupId> | ||
<artifactId>httpcore5</artifactId> | ||
<version>5.2.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.httpcomponents.core5</groupId> | ||
<artifactId>httpcore5-h2</artifactId> | ||
<version>5.2.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.github.luben</groupId> | ||
<artifactId>zstd-jni</artifactId> | ||
<optional>true</optional> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.lz4</groupId> | ||
<artifactId>lz4-pure-java</artifactId> | ||
<optional>true</optional> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.code.gson</groupId> | ||
<artifactId>gson</artifactId> | ||
<optional>true</optional> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-compress</artifactId> | ||
<optional>true</optional> | ||
</dependency> | ||
<!-- necessary for Java 9+ --> | ||
<dependency> | ||
<groupId>org.apache.tomcat</groupId> | ||
<artifactId>annotations-api</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<!-- <dependency>--> | ||
<!-- <groupId>${project.parent.groupId}</groupId>--> | ||
<!-- <artifactId>clickhouse-client</artifactId>--> | ||
<!-- <version>${revision}</version>--> | ||
<!-- <type>test-jar</type>--> | ||
<!-- <scope>test</scope>--> | ||
<!-- </dependency>--> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-simple</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.testcontainers</groupId> | ||
<artifactId>testcontainers</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.testcontainers</groupId> | ||
<artifactId>toxiproxy</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.testng</groupId> | ||
<artifactId>testng</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-shade-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>shade</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>shade</goal> | ||
</goals> | ||
<configuration> | ||
<shadedArtifactAttached>true</shadedArtifactAttached> | ||
<shadedClassifierName>shaded</shadedClassifierName> | ||
<createDependencyReducedPom>true</createDependencyReducedPom> | ||
<createSourcesJar>true</createSourcesJar> | ||
<promoteTransitiveDependencies>true</promoteTransitiveDependencies> | ||
<artifactSet> | ||
<includes> | ||
<include>com.clickhouse:clickhouse-data</include> | ||
<include>com.clickhouse:clickhouse-client</include> | ||
<include>org.lz4:lz4-pure-java</include> | ||
</includes> | ||
</artifactSet> | ||
<relocations> | ||
<relocation> | ||
<pattern>net.jpountz</pattern> | ||
<shadedPattern>${shade.base}.jpountz</shadedPattern> | ||
</relocation> | ||
</relocations> | ||
<transformers> | ||
<transformer | ||
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> | ||
<manifestEntries> | ||
<Automatic-Module-Name>com.clickhouse.client.http</Automatic-Module-Name> | ||
</manifestEntries> | ||
</transformer> | ||
</transformers> | ||
<filters> | ||
<filter> | ||
<artifact>*:*</artifact> | ||
<excludes> | ||
<exclude>**/module-info.class</exclude> | ||
</excludes> | ||
</filter> | ||
</filters> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>flatten-maven-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>flatten</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>flatten</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |