You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@paimon.apache.org by lz...@apache.org on 2023/03/22 06:58:50 UTC

[incubator-paimon-shade] branch main updated: [caffeine] Add caffeine shade (#4)

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

lzljs3620320 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-paimon-shade.git


The following commit(s) were added to refs/heads/main by this push:
     new 116c45f  [caffeine] Add caffeine shade (#4)
116c45f is described below

commit 116c45f7527df1cdde130c5f446056060dffc42e
Author: Kerwin <37...@users.noreply.github.com>
AuthorDate: Wed Mar 22 14:58:44 2023 +0800

    [caffeine] Add caffeine shade (#4)
---
 paimon-shade-caffeine-2/pom.xml                    | 89 ++++++++++++++++++++++
 .../src/main/resources/META-INF/NOTICE             |  9 +++
 pom.xml                                            |  1 +
 3 files changed, 99 insertions(+)

diff --git a/paimon-shade-caffeine-2/pom.xml b/paimon-shade-caffeine-2/pom.xml
new file mode 100644
index 0000000..abe9827
--- /dev/null
+++ b/paimon-shade-caffeine-2/pom.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.paimon</groupId>
+        <artifactId>paimon-shade</artifactId>
+        <version>1.0</version>
+    </parent>
+
+    <artifactId>paimon-shade-caffeine-2</artifactId>
+    <name>paimon-shade-caffeine-2</name>
+    <version>${caffeine.version}-1.0</version>
+
+    <packaging>jar</packaging>
+
+    <properties>
+        <caffeine.version>2.9.3</caffeine.version>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>com.github.ben-manes.caffeine</groupId>
+            <artifactId>caffeine</artifactId>
+            <version>${caffeine.version}</version>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-shade-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>shade-paimon</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>shade</goal>
+                        </goals>
+                        <configuration>
+                            <createDependencyReducedPom>true</createDependencyReducedPom>
+                            <dependencyReducedPomLocation>${project.basedir}/target/dependency-reduced-pom.xml</dependencyReducedPomLocation>
+                            <artifactSet>
+                                <includes>
+                                    <include>com.github.ben-manes.caffeine:*</include>
+                                </includes>
+                            </artifactSet>
+                            <relocations>
+                                <relocation>
+                                    <pattern>com.github.benmanes</pattern>
+                                    <shadedPattern>${shading.prefix}.caffeine2.com.github.benmanes</shadedPattern>
+                                </relocation>
+                            </relocations>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+                <!-- Used to resolve variables in the 'version' tag -->
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>flatten-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
diff --git a/paimon-shade-caffeine-2/src/main/resources/META-INF/NOTICE b/paimon-shade-caffeine-2/src/main/resources/META-INF/NOTICE
new file mode 100644
index 0000000..f970aa6
--- /dev/null
+++ b/paimon-shade-caffeine-2/src/main/resources/META-INF/NOTICE
@@ -0,0 +1,9 @@
+paimon-shade-caffeine-2
+Copyright 2023-2023 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+This project bundles the following dependencies under the Apache Software License 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+
+- com.github.ben-manes.caffeine:caffeine:2.9.3
diff --git a/pom.xml b/pom.xml
index bb9e411..7fe8abf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -62,6 +62,7 @@ under the License.
 
     <modules>
         <module>paimon-shade-guava-30</module>
+        <module>paimon-shade-caffeine-2</module>
         <module>paimon-shade-jackson-parent</module>
     </modules>