|
67 | 67 | </ignoredUsedUndeclaredDependencies> |
68 | 68 | </configuration> |
69 | 69 | </plugin> |
| 70 | + <plugin> |
| 71 | + <groupId>org.apache.maven.plugins</groupId> |
| 72 | + <artifactId>maven-shade-plugin</artifactId> |
| 73 | + <version>3.5.2</version> <!-- Use the latest version --> |
| 74 | + <executions> |
| 75 | + <execution> |
| 76 | + <phase>package</phase> |
| 77 | + <goals> |
| 78 | + <goal>shade</goal> |
| 79 | + </goals> |
| 80 | + <configuration> |
| 81 | + <shadedArtifactAttached>true</shadedArtifactAttached> |
| 82 | + <shadedClassifierName>all</shadedClassifierName> <!-- Any name that makes sense --> |
| 83 | + <createDependencyReducedPom>false</createDependencyReducedPom> |
| 84 | + <archive> |
| 85 | + <manifestEntries> |
| 86 | + <Add-Opens>java.base/java.nio=ALL-UNNAMED</Add-Opens> |
| 87 | + </manifestEntries> |
| 88 | + </archive> |
| 89 | + <transformers> |
| 90 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
| 91 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"/> |
| 92 | + <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 93 | + <resource>META-INF/io.netty.versions.properties</resource> |
| 94 | + </transformer> |
| 95 | + </transformers> |
| 96 | + <relocations> |
| 97 | + <relocation> |
| 98 | + <pattern>com</pattern> |
| 99 | + <shadedPattern>com.google.bqjdbc.shaded.com</shadedPattern> |
| 100 | + <excludes> |
| 101 | + <exclude>com.google.cloud.bigquery.*</exclude> |
| 102 | + <exclude>com.google.cloud.bigquery.jdbc.*</exclude> |
| 103 | + </excludes> |
| 104 | + </relocation> |
| 105 | + <relocation> |
| 106 | + <pattern>org</pattern> |
| 107 | + <shadedPattern>com.google.bqjdbc.shaded.org</shadedPattern> |
| 108 | + <excludes> |
| 109 | + <exclude>org.conscrypt.*</exclude> |
| 110 | + </excludes> |
| 111 | + </relocation> |
| 112 | + <relocation> |
| 113 | + <pattern>io</pattern> |
| 114 | + <shadedPattern>com.google.bqjdbc.shaded.io</shadedPattern> |
| 115 | + </relocation> |
| 116 | + </relocations> |
| 117 | + <filters> |
| 118 | + <filter> |
| 119 | + <artifact>*:*</artifact> |
| 120 | + <excludes> |
| 121 | + <exclude>META-INF/LICENSE*</exclude> |
| 122 | + <exclude>META-INF/NOTICE*</exclude> |
| 123 | + <exclude>META-INF/DEPENDENCIES</exclude> |
| 124 | + <exclude>META-INF/proguard/*.pro</exclude> |
| 125 | + <exclude>META-INF/maven/**</exclude> |
| 126 | + <exclude>META-INF/*.MF</exclude> |
| 127 | + <exclude>META-INF/*.SF</exclude> |
| 128 | + <exclude>META-INF/*.DSA</exclude> |
| 129 | + <exclude>META-INF/*.RSA</exclude> |
| 130 | + <exclude>arrow-git.properties</exclude> |
| 131 | + </excludes> |
| 132 | + </filter> |
| 133 | + </filters> |
| 134 | + </configuration> |
| 135 | + </execution> |
| 136 | + </executions> |
| 137 | + </plugin> |
70 | 138 | </plugins> |
71 | 139 | </build> |
72 | 140 |
|
|
236 | 304 | </build> |
237 | 305 | </profile> |
238 | 306 |
|
239 | | - <!-- Profile used to build JAR with all dependencies for the release. --> |
240 | | - <profile> |
241 | | - <id>release-all-dependencies-shaded</id> |
242 | | - <build> |
243 | | - <plugins> |
244 | | - <plugin> |
245 | | - <groupId>org.apache.maven.plugins</groupId> |
246 | | - <artifactId>maven-shade-plugin</artifactId> |
247 | | - <version>3.5.2</version> <!-- Use the latest version --> |
248 | | - <executions> |
249 | | - <execution> |
250 | | - <configuration> |
251 | | - <relocations> |
252 | | - <relocation> |
253 | | - <pattern>com</pattern> |
254 | | - <shadedPattern>shaded.bqjdbc.com</shadedPattern> |
255 | | - <excludes> |
256 | | - <exclude>com.google.cloud.bigquery.jdbc.*</exclude> |
257 | | - </excludes> |
258 | | - </relocation> |
259 | | - <relocation> |
260 | | - <pattern>org</pattern> |
261 | | - <shadedPattern>shaded.bqjdbc.org</shadedPattern> |
262 | | - <excludes> |
263 | | - <exclude>org.conscrypt.*</exclude> |
264 | | - </excludes> |
265 | | - </relocation> |
266 | | - <relocation> |
267 | | - <pattern>io</pattern> |
268 | | - <shadedPattern>shaded.bqjdbc.io</shadedPattern> |
269 | | - </relocation> |
270 | | - </relocations> |
271 | | - </configuration> |
272 | | - </execution> |
273 | | - </executions> |
274 | | - </plugin> |
275 | | - </plugins> |
276 | | - </build> |
277 | | - </profile> |
278 | | - |
279 | | - <profile> |
280 | | - <id>release-all-dependencies</id> |
281 | | - <build> |
282 | | - <plugins> |
283 | | - <plugin> |
284 | | - <groupId>org.apache.maven.plugins</groupId> |
285 | | - <artifactId>maven-shade-plugin</artifactId> |
286 | | - <version>3.5.2</version> <!-- Use the latest version --> |
287 | | - <executions> |
288 | | - <execution> |
289 | | - <phase>package</phase> |
290 | | - <goals> |
291 | | - <goal>shade</goal> |
292 | | - </goals> |
293 | | - <configuration> |
294 | | - <createDependencyReducedPom>false</createDependencyReducedPom> |
295 | | - <archive> |
296 | | - <manifestEntries> |
297 | | - <Add-Opens>java.base/java.nio=ALL-UNNAMED</Add-Opens> |
298 | | - </manifestEntries> |
299 | | - </archive> |
300 | | - <transformers> |
301 | | - <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
302 | | - <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"/> |
303 | | - <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
304 | | - <resource>META-INF/io.netty.versions.properties</resource> |
305 | | - </transformer> |
306 | | - </transformers> |
307 | | - <filters> |
308 | | - <filter> |
309 | | - <artifact>*:*</artifact> |
310 | | - <excludes> |
311 | | - <exclude>META-INF/LICENSE*</exclude> |
312 | | - <exclude>META-INF/NOTICE*</exclude> |
313 | | - <exclude>META-INF/DEPENDENCIES</exclude> |
314 | | - <exclude>META-INF/proguard/*.pro</exclude> |
315 | | - <exclude>META-INF/maven/**</exclude> |
316 | | - <exclude>META-INF/*.MF</exclude> |
317 | | - <exclude>META-INF/*.SF</exclude> |
318 | | - <exclude>META-INF/*.DSA</exclude> |
319 | | - <exclude>META-INF/*.RSA</exclude> |
320 | | - <exclude>arrow-git.properties</exclude> |
321 | | - </excludes> |
322 | | - </filter> |
323 | | - </filters> |
324 | | - </configuration> |
325 | | - </execution> |
326 | | - </executions> |
327 | | - </plugin> |
328 | | - </plugins> |
329 | | - </build> |
330 | | - </profile> |
331 | | - |
332 | 307 | <!-- Profile used inside docker --> |
333 | 308 | <profile> |
334 | 309 | <id>docker</id> |
|
0 commit comments