Skip to content

Commit

Permalink
[CDAP-20872] Remove Tink dependency from cdap-security
Browse files Browse the repository at this point in the history
  • Loading branch information
dli357 committed Nov 13, 2023
1 parent 4ad445e commit 92a42b2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 64 deletions.
14 changes: 12 additions & 2 deletions cdap-hbase-compat-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
-->

<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">
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>cdap</artifactId>
<groupId>io.cdap.cdap</groupId>
Expand All @@ -29,6 +29,11 @@
<name>CDAP HBase Compactability Base</name>
<packaging>jar</packaging>

<properties>
<!-- Not set at the parent pom level to avoid impacting other child modules. -->
<protobuf.version>3.14.0</protobuf.version>
</properties>

<dependencies>
<dependency>
<groupId>io.cdap.cdap</groupId>
Expand Down Expand Up @@ -138,6 +143,11 @@
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>${protobuf.version}</version>
</dependency>
</dependencies>

<build>
Expand Down
48 changes: 0 additions & 48 deletions cdap-security/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,6 @@
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-minikdc</artifactId>
</dependency>
<dependency>
<groupId>com.google.crypto.tink</groupId>
<artifactId>tink</artifactId>
</dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-common</artifactId>
Expand Down Expand Up @@ -197,50 +193,6 @@
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<artifactSet>
<includes>
<include>com.google.crypto.tink:tink</include>
<include>com.google.protobuf:protobuf-java</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>com.google.protobuf</pattern>
<shadedPattern>io.cdap.cdap.shaded.com.google.protobuf</shadedPattern>
</relocation>
<relocation>
<pattern>com.google.crypto.tink</pattern>
<shadedPattern>io.cdap.cdap.shaded.com.google.crypto.tink</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
<id>shade</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
<execution>
<id>dist-shade</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<outputDirectory>${stage.lib.dir}</outputDirectory>
<finalName>${project.groupId}.${project.build.finalName}</finalName>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down
16 changes: 2 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@
<sshd.version>1.7.0</sshd.version>
<tephra.version>0.15.0-incubating</tephra.version>
<tez.version>0.8.4</tez.version>
<tink.version>1.6.0</tink.version>
<thrift.version>0.9.3</thrift.version>
<twill.version>1.3.1</twill.version>
<unboundid.version>2.3.6</unboundid.version>
Expand Down Expand Up @@ -1598,17 +1597,6 @@
<artifactId>jackson-module-scala_2.12</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.google.crypto.tink</groupId>
<artifactId>tink</artifactId>
<version>${tink.version}</version>
<exclusions>
<exclusion>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
Expand Down Expand Up @@ -2051,8 +2039,8 @@
<package.rpm.arch>all</package.rpm.arch>
<package.dirs>opt etc</package.dirs>
<package.config.dirs>--config-files etc/cdap --config-files etc/logrotate.d --config-files etc/security</package.config.dirs>
<dependency.groupId.exclusions>org.apache.hadoop,org.apache.hbase,com.google.protobuf,\
org.datanucleus,asm,org.apache.spark,slf4j-log4j12,commons-logging,com.google.crypto.tink</dependency.groupId.exclusions>
<dependency.groupId.exclusions>org.apache.hadoop,org.apache.hbase,\
org.datanucleus,asm,org.apache.spark,slf4j-log4j12,commons-logging</dependency.groupId.exclusions>
</properties>
<build>
<pluginManagement>
Expand Down

0 comments on commit 92a42b2

Please sign in to comment.