Skip to content

Commit

Permalink
Update maven plugins
Browse files Browse the repository at this point in the history
maven-compiler-plugin.version 3.8.0
maven-jar-plugin.version 3.1.0
maven-shade-plugin.version 3.2.0
maven-resources-plugin.version 3.1.0
Relocate shaded dependencies into com.couchbase.mock.deps package

Fixes #45, #33

Change-Id: Ia098e2207df0b54e569bd18e3fb0961a17f81b44
Reviewed-on: http://review.couchbase.org/102748
Reviewed-by: Sergey Avseyev <[email protected]>
Tested-by: Sergey Avseyev <[email protected]>
  • Loading branch information
Aloren authored and avsej committed Dec 13, 2018
1 parent 26da626 commit 99084d4
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
Expand All @@ -69,15 +69,15 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
<version>${maven-resources-plugin.version}</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<manifest>
Expand All @@ -94,7 +94,22 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.2</version>
<version>${maven-shade-plugin.version}</version>
<configuration>
<relocations>
<relocation>
<pattern>org</pattern>
<shadedPattern>com.couchbase.mock.deps.org</shadedPattern>
</relocation>
<relocation>
<pattern>com</pattern>
<shadedPattern>com.couchbase.mock.deps.com</shadedPattern>
<excludes>
<exclude>com.couchbase.mock.*</exclude>
</excludes>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
<phase>package</phase>
Expand All @@ -118,7 +133,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -131,7 +146,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<version>${maven-javadoc-plugin.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down Expand Up @@ -212,6 +227,12 @@
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
<maven-jar-plugin.version>3.1.0</maven-jar-plugin.version>
<maven-shade-plugin.version>3.2.0</maven-shade-plugin.version>
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
<maven-javadoc-plugin.version>2.10.4</maven-javadoc-plugin.version>
</properties>
<description>A simple Java mock of Couchbase used for client testing.</description>
<reporting>
Expand Down

0 comments on commit 99084d4

Please sign in to comment.