You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by jl...@apache.org on 2021/02/24 01:26:29 UTC

[incubator-pinot] branch add-shaded-jar-option-for-pinot-spi-and-pinot-avro-base created (now 2bb0dae)

This is an automated email from the ASF dual-hosted git repository.

jlli pushed a change to branch add-shaded-jar-option-for-pinot-spi-and-pinot-avro-base
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git.


      at 2bb0dae  Build shaded jars for pinot-spi and pinot-avro-base modules

This branch includes the following new commits:

     new 2bb0dae  Build shaded jars for pinot-spi and pinot-avro-base modules

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[incubator-pinot] 01/01: Build shaded jars for pinot-spi and pinot-avro-base modules

Posted by jl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jlli pushed a commit to branch add-shaded-jar-option-for-pinot-spi-and-pinot-avro-base
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git

commit 2bb0dae4617cf1b81d26c22275a2bdcbd956d5bc
Author: Jack Li(Analytics Engineering) <jl...@jlli-mn1.linkedin.biz>
AuthorDate: Tue Feb 23 17:26:03 2021 -0800

    Build shaded jars for pinot-spi and pinot-avro-base modules
---
 .../pinot-input-format/pinot-avro-base/pom.xml     | 31 ++++++++++++++++++++++
 pinot-spi/pom.xml                                  | 31 ++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/pinot-plugins/pinot-input-format/pinot-avro-base/pom.xml b/pinot-plugins/pinot-input-format/pinot-avro-base/pom.xml
index 74b3caf..e25e31b 100644
--- a/pinot-plugins/pinot-input-format/pinot-avro-base/pom.xml
+++ b/pinot-plugins/pinot-input-format/pinot-avro-base/pom.xml
@@ -52,4 +52,35 @@
       </exclusions>
     </dependency>
   </dependencies>
+  <profiles>
+    <profile>
+      <id>build-shaded-jar</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-shade-plugin</artifactId>
+            <executions>
+              <execution>
+                <phase>package</phase>
+                <goals>
+                  <goal>shade</goal>
+                </goals>
+                <configuration>
+                  <relocations>
+                    <relocation>
+                      <pattern>com.google.common.base</pattern>
+                      <shadedPattern>shaded.com.google.common.base</shadedPattern>
+                    </relocation>
+                  </relocations>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>
diff --git a/pinot-spi/pom.xml b/pinot-spi/pom.xml
index ac2549c..9f61b72 100644
--- a/pinot-spi/pom.xml
+++ b/pinot-spi/pom.xml
@@ -149,4 +149,35 @@
       <artifactId>reflections</artifactId>
     </dependency>
   </dependencies>
+  <profiles>
+    <profile>
+      <id>build-shaded-jar</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-shade-plugin</artifactId>
+            <executions>
+              <execution>
+                <phase>package</phase>
+                <goals>
+                  <goal>shade</goal>
+                </goals>
+                <configuration>
+                  <relocations>
+                    <relocation>
+                      <pattern>com.google.common.base</pattern>
+                      <shadedPattern>shaded.com.google.common.base</shadedPattern>
+                    </relocation>
+                  </relocations>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org