You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ta...@apache.org on 2021/05/19 06:44:46 UTC
[hadoop-thirdparty] 12/28: HADOOP-17278. Shade guava 29.0-jre in
hadoop thirdparty. (#8)
This is an automated email from the ASF dual-hosted git repository.
tasanuma pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop-thirdparty.git
commit 140820867145c06bd4a89037de58d56025a60992
Author: Ayush Saxena <ay...@gmail.com>
AuthorDate: Sun Sep 27 20:23:30 2020 +0530
HADOOP-17278. Shade guava 29.0-jre in hadoop thirdparty. (#8)
---
hadoop-shaded-guava/pom.xml | 114 ++++++++++++++++++++++++++++++++++++++++++++
pom.xml | 2 +
2 files changed, 116 insertions(+)
diff --git a/hadoop-shaded-guava/pom.xml b/hadoop-shaded-guava/pom.xml
new file mode 100644
index 0000000..dc650de
--- /dev/null
+++ b/hadoop-shaded-guava/pom.xml
@@ -0,0 +1,114 @@
+<?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">
+ <parent>
+ <artifactId>hadoop-thirdparty</artifactId>
+ <groupId>org.apache.hadoop.thirdparty</groupId>
+ <version>1.1.0-SNAPSHOT</version>
+ <relativePath>..</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>hadoop-shaded-guava</artifactId>
+ <name>Apache Hadoop shaded Guava</name>
+ <packaging>jar</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
+ <version>${guava.version}</version>
+ <exclusions>
+ <!-- Excluding error_prone_annotations because of YARN-10195-->
+ <exclusion>
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>error_prone_annotations</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>${project.basedir}/..</directory>
+ <targetPath>META-INF</targetPath>
+ <includes>
+ <include>licenses-binary/*</include>
+ <include>NOTICE.txt</include>
+ <include>NOTICE-binary</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>${project.basedir}/src/main/resources</directory>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <configuration>
+ <createDependencyReducedPom>true</createDependencyReducedPom>
+ </configuration>
+ <executions>
+ <execution>
+ <id>shade-guava</id>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <artifactSet>
+ <excludes>
+ <exclude>com.google.code.findbugs:jsr305</exclude>
+ </excludes>
+ </artifactSet>
+ <relocations>
+ <relocation>
+ <pattern>com/google/</pattern>
+ <shadedPattern>${shaded.prefix}/com/google/</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org/checkerframework/</pattern>
+ <shadedPattern>${shaded.prefix}/org/checkerframework/</shadedPattern>
+ </relocation>
+ </relocations>
+ <transformers>
+ <transformer
+ implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
+ <resources>
+ <resource>NOTICE</resource>
+ <resource>LICENSE</resource>
+ </resources>
+ </transformer>
+ <transformer
+ implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
+ <resource>META-INF/LICENSE.txt</resource>
+ <file>${basedir}/../LICENSE-binary</file>
+ </transformer>
+ </transformers>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 8d6f1e3..fa07fc2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -95,6 +95,7 @@
<shaded.prefix>org.apache.hadoop.thirdparty</shaded.prefix>
<protobuf.shade.prefix>${shaded.prefix}.protobuf</protobuf.shade.prefix>
<protobuf_3_7.version>3.7.1</protobuf_3_7.version>
+ <guava.version>29.0-jre</guava.version>
<!-- maven plugin versions -->
<maven-deploy-plugin.version>2.8.1</maven-deploy-plugin.version>
@@ -123,6 +124,7 @@
<modules>
<module>hadoop-shaded-protobuf_3_7</module>
<module>hadoop-shaded-jaeger</module>
+ <module>hadoop-shaded-guava</module>
</modules>
<build>
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org