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:00:53 UTC

[orc] branch main 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 main
in repository https://gitbox.apache.org/repos/asf/orc.git


The following commit(s) were added to refs/heads/main by this push:
     new 5ca641448 ORC-1260: Publish `shaded-protobuf` classifier artifacts
5ca641448 is described below

commit 5ca641448c3362ed93b4afb900da830b20814305
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>
---
 java/pom.xml | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/java/pom.xml b/java/pom.xml
index 27ef668e8..b6962e9c3 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -455,6 +455,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>