You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by do...@apache.org on 2022/08/24 08:01:02 UTC
[orc] branch branch-1.8 updated: ORC-1260: Publish `shaded-protobuf` classifier artifacts
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-1.8
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/branch-1.8 by this push:
new cd664d518 ORC-1260: Publish `shaded-protobuf` classifier artifacts
cd664d518 is described below
commit cd664d5186edf7d6a155b882bd34bf3e44edb995
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Wed Aug 24 01:00:44 2022 -0700
ORC-1260: Publish `shaded-protobuf` classifier artifacts
### What changes were proposed in this pull request?
Apache ORC has `nohive` classifier artifacts. This PR aims to add `shaded-protobuf` classifier artifacts additionally.
```
$ ls -al ~/.m2/repository/org/apache/orc/orc-core/1.9.0-SNAPSHOT
total 16472
drwxr-xr-x 11 dongjoon staff 352 Aug 24 00:03 .
drwxr-xr-x 4 dongjoon staff 128 Aug 24 00:03 ..
-rw-r--r-- 1 dongjoon staff 400 Aug 24 00:03 _remote.repositories
-rw-r--r-- 1 dongjoon staff 1743 Aug 24 00:03 maven-metadata-local.xml
-rw-r--r-- 1 dongjoon staff 3106139 Aug 24 00:03 orc-core-1.9.0-SNAPSHOT-nohive.jar
-rw-r--r-- 1 dongjoon staff 2854127 Aug 24 00:03 orc-core-1.9.0-SNAPSHOT-shaded-protobuf.jar
-rw-r--r-- 1 dongjoon staff 514669 Aug 24 00:03 orc-core-1.9.0-SNAPSHOT-sources.jar
-rw-r--r-- 1 dongjoon staff 267487 Aug 24 00:03 orc-core-1.9.0-SNAPSHOT-test-sources.jar
-rw-r--r-- 1 dongjoon staff 489298 Aug 24 00:03 orc-core-1.9.0-SNAPSHOT-tests.jar
-rw-r--r-- 1 dongjoon staff 1166451 Aug 24 00:03 orc-core-1.9.0-SNAPSHOT.jar
-rw-r--r-- 1 dongjoon staff 13628 Aug 24 00:03 orc-core-1.9.0-SNAPSHOT.pom
```
### Why are the changes needed?
To help the downstream projects choose the latest `protobuf-java`.
### How was this patch tested?
Pass the CIs.
Closes #1233 from dongjoon-hyun/ORC-1260.
Authored-by: Dongjoon Hyun <do...@apache.org>
Signed-off-by: Dongjoon Hyun <do...@apache.org>
(cherry picked from commit 5ca641448c3362ed93b4afb900da830b20814305)
Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
java/pom.xml | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/java/pom.xml b/java/pom.xml
index f04adb135..5f1c19e92 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -454,6 +454,41 @@
<version>${maven-shade-plugin.version}</version>
<executions>
<execution>
+ <id>shaded-protobuf</id>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <artifactSet>
+ <includes>
+ <include>com.google.protobuf:protobuf-java</include>
+ </includes>
+ </artifactSet>
+ <shadedArtifactAttached>true</shadedArtifactAttached>
+ <shadedClassifierName>shaded-protobuf</shadedClassifierName>
+ <relocations>
+ <relocation>
+ <pattern>com.google.protobuf</pattern>
+ <shadedPattern>com.google.protobuf25</shadedPattern>
+ </relocation>
+ </relocations>
+ <filters>
+ <filter>
+ <artifact>*:*</artifact>
+ <excludes>
+ <exclude>module-info.class</exclude>
+ <exclude>META-INF/MANIFEST.MF</exclude>
+ <exclude>META-INF/DEPENDENCIES</exclude>
+ <exclude>META-INF/LICENSE</exclude>
+ <exclude>META-INF/NOTICE</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ </configuration>
+ </execution>
+ <execution>
+ <id>nohive</id>
<phase>package</phase>
<goals>
<goal>shade</goal>