|
8 | 8 | </parent>
|
9 | 9 |
|
10 | 10 | <artifactId>clickhouse-grpc-client</artifactId>
|
11 |
| - <version>${revision}</version> |
12 | 11 | <packaging>jar</packaging>
|
13 | 12 |
|
14 |
| - <name>${project.artifactId}</name> |
| 13 | + <name>ClickHouse gRPC Client</name> |
15 | 14 | <description>gRPC client for ClickHouse</description>
|
16 | 15 | <url>https://github.com/ClickHouse/clickhouse-jdbc/tree/master/clickhouse-grpc-client</url>
|
17 | 16 |
|
18 |
| - <properties> |
19 |
| - <shade.base>${project.parent.groupId}.client.internal</shade.base> |
20 |
| - </properties> |
21 |
| - |
22 | 17 | <dependencies>
|
23 | 18 | <dependency>
|
24 | 19 | <groupId>${project.parent.groupId}</groupId>
|
|
35 | 30 | </exclusion>
|
36 | 31 | </exclusions>
|
37 | 32 | </dependency>
|
| 33 | + <dependency> |
| 34 | + <groupId>org.lz4</groupId> |
| 35 | + <artifactId>lz4-java</artifactId> |
| 36 | + </dependency> |
38 | 37 |
|
39 | 38 | <dependency>
|
40 | 39 | <groupId>com.google.code.gson</groupId>
|
41 | 40 | <artifactId>gson</artifactId>
|
42 | 41 | </dependency>
|
| 42 | + <dependency> |
| 43 | + <groupId>org.apache.commons</groupId> |
| 44 | + <artifactId>commons-compress</artifactId> |
| 45 | + </dependency> |
43 | 46 | <dependency>
|
44 | 47 | <groupId>io.grpc</groupId>
|
45 | 48 | <artifactId>grpc-protobuf</artifactId>
|
46 | 49 | <scope>provided</scope>
|
47 | 50 | </dependency>
|
48 |
| - <dependency> |
49 |
| - <groupId>org.apache.commons</groupId> |
50 |
| - <artifactId>commons-compress</artifactId> |
51 |
| - </dependency> |
52 | 51 | <!-- necessary for Java 9+ -->
|
53 | 52 | <dependency>
|
54 | 53 | <groupId>org.apache.tomcat</groupId>
|
|
88 | 87 | </extension>
|
89 | 88 | </extensions>
|
90 | 89 | <plugins>
|
| 90 | + <plugin> |
| 91 | + <groupId>org.apache.maven.plugins</groupId> |
| 92 | + <artifactId>maven-compiler-plugin</artifactId> |
| 93 | + </plugin> |
91 | 94 | <plugin>
|
92 | 95 | <groupId>org.apache.maven.plugins</groupId>
|
93 | 96 | <artifactId>maven-shade-plugin</artifactId>
|
|
100 | 103 | </goals>
|
101 | 104 | <configuration>
|
102 | 105 | <shadedArtifactAttached>true</shadedArtifactAttached>
|
| 106 | + <shadedClassifierName>shaded</shadedClassifierName> |
103 | 107 | <createDependencyReducedPom>true</createDependencyReducedPom>
|
104 | 108 | <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
|
105 |
| - <shadedClassifierName>shaded</shadedClassifierName> |
106 | 109 | <relocations>
|
107 | 110 | <relocation>
|
108 | 111 | <pattern>com.google</pattern>
|
|
116 | 119 | <pattern>okio</pattern>
|
117 | 120 | <shadedPattern>${shade.base}.okio</shadedPattern>
|
118 | 121 | </relocation>
|
| 122 | + <relocation> |
| 123 | + <pattern>org.apache</pattern> |
| 124 | + <shadedPattern>${shade.base}.apache</shadedPattern> |
| 125 | + </relocation> |
119 | 126 | <relocation>
|
120 | 127 | <pattern>io.grpc</pattern>
|
121 | 128 | <shadedPattern>${shade.base}.grpc</shadedPattern>
|
|
128 | 135 | <pattern>io.opencensus</pattern>
|
129 | 136 | <shadedPattern>${shade.base}.opencensus</shadedPattern>
|
130 | 137 | </relocation>
|
| 138 | + <relocation> |
| 139 | + <pattern>net.jpountz</pattern> |
| 140 | + <shadedPattern>${shade.base}.jpountz</shadedPattern> |
| 141 | + </relocation> |
131 | 142 | </relocations>
|
132 | 143 | <transformers>
|
133 | 144 | <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" />
|
134 | 145 | <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer" />
|
135 | 146 | <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
|
| 147 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 148 | + <manifestEntries> |
| 149 | + <Automatic-Module-Name>com.clickhouse.client.grpc</Automatic-Module-Name> |
| 150 | + </manifestEntries> |
| 151 | + </transformer> |
136 | 152 | </transformers>
|
137 | 153 | <filters>
|
138 | 154 | <filter>
|
|
141 | 157 | <exclude>android/**</exclude>
|
142 | 158 | <exclude>google/**</exclude>
|
143 | 159 | <exclude>javax/**</exclude>
|
144 |
| - <exclude>org/**</exclude> |
| 160 | + <exclude>org/checkerframework/**</exclude> |
| 161 | + <exclude>org/codehaus/**</exclude> |
145 | 162 | <exclude>**/module-info.class</exclude>
|
146 | 163 | <exclude>META-INF/MANIFEST.MF</exclude>
|
147 | 164 | <exclude>META-INF/maven/**</exclude>
|
|
167 | 184 | <pattern>com.google</pattern>
|
168 | 185 | <shadedPattern>${shade.base}.google</shadedPattern>
|
169 | 186 | </relocation>
|
| 187 | + <relocation> |
| 188 | + <pattern>org.apache</pattern> |
| 189 | + <shadedPattern>${shade.base}.apache</shadedPattern> |
| 190 | + </relocation> |
170 | 191 | <relocation>
|
171 | 192 | <pattern>io.grpc</pattern>
|
172 | 193 | <shadedPattern>${shade.base}.grpc</shadedPattern>
|
|
179 | 200 | <pattern>io.opencensus</pattern>
|
180 | 201 | <shadedPattern>${shade.base}.opencensus</shadedPattern>
|
181 | 202 | </relocation>
|
| 203 | + <relocation> |
| 204 | + <pattern>net.jpountz</pattern> |
| 205 | + <shadedPattern>${shade.base}.jpountz</shadedPattern> |
| 206 | + </relocation> |
182 | 207 | </relocations>
|
183 | 208 | <transformers>
|
184 | 209 | <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" />
|
|
195 | 220 | <exclude>io/grpc/okhttp/**</exclude>
|
196 | 221 | <exclude>javax/**</exclude>
|
197 | 222 | <exclude>okio/**</exclude>
|
198 |
| - <exclude>org/**</exclude> |
| 223 | + <exclude>org/checkerframework/**</exclude> |
| 224 | + <exclude>org/codehaus/**</exclude> |
199 | 225 | <exclude>**/module-info.class</exclude>
|
200 | 226 | <exclude>META-INF/MANIFEST.MF</exclude>
|
201 | 227 | <exclude>META-INF/maven/**</exclude>
|
|
229 | 255 | <pattern>okio</pattern>
|
230 | 256 | <shadedPattern>${shade.base}.okio</shadedPattern>
|
231 | 257 | </relocation>
|
| 258 | + <relocation> |
| 259 | + <pattern>org.apache</pattern> |
| 260 | + <shadedPattern>${shade.base}.apache</shadedPattern> |
| 261 | + </relocation> |
232 | 262 | <relocation>
|
233 | 263 | <pattern>io.grpc</pattern>
|
234 | 264 | <shadedPattern>${shade.base}.grpc</shadedPattern>
|
|
241 | 271 | <pattern>io.opencensus</pattern>
|
242 | 272 | <shadedPattern>${shade.base}.opencensus</shadedPattern>
|
243 | 273 | </relocation>
|
| 274 | + <relocation> |
| 275 | + <pattern>net.jpountz</pattern> |
| 276 | + <shadedPattern>${shade.base}.jpountz</shadedPattern> |
| 277 | + </relocation> |
244 | 278 | </relocations>
|
245 | 279 | <transformers>
|
246 | 280 | <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" />
|
|
255 | 289 | <exclude>google/**</exclude>
|
256 | 290 | <exclude>io/grpc/netty/**</exclude>
|
257 | 291 | <exclude>javax/**</exclude>
|
258 |
| - <exclude>org/**</exclude> |
| 292 | + <exclude>org/checkerframework/**</exclude> |
| 293 | + <exclude>org/codehaus/**</exclude> |
259 | 294 | <exclude>**/module-info.class</exclude>
|
260 | 295 | <exclude>META-INF/MANIFEST.MF</exclude>
|
261 | 296 | <exclude>META-INF/maven/**</exclude>
|
|
288 | 323 | </executions>
|
289 | 324 | </plugin>
|
290 | 325 | <plugin>
|
291 |
| - <groupId>org.apache.maven.plugins</groupId> |
292 |
| - <artifactId>maven-compiler-plugin</artifactId> |
| 326 | + <groupId>org.codehaus.mojo</groupId> |
| 327 | + <artifactId>flatten-maven-plugin</artifactId> |
| 328 | + <executions> |
| 329 | + <execution> |
| 330 | + <id>flatten</id> |
| 331 | + <phase>package</phase> |
| 332 | + <goals> |
| 333 | + <goal>flatten</goal> |
| 334 | + </goals> |
| 335 | + </execution> |
| 336 | + </executions> |
293 | 337 | </plugin>
|
294 | 338 | <plugin>
|
295 | 339 | <groupId>org.xolstice.maven.plugins</groupId>
|
|
0 commit comments