HIGUCHI Yuta
Committed by Gerrit Code Review

Clean up shaded thirdparty bundle

- Exclude artifacts, which is already an OSGi bundles
- Create source jar for ease of debugging.
- Remove expiringmap, which we no longer use
- Derive artifact version from dependencyManagement

Change-Id: I053f08a1880109a7c74fa451afccbbe2d2adbe3c
......@@ -35,13 +35,6 @@
<dependency>
<groupId>com.googlecode.concurrent-trees</groupId>
<artifactId>concurrent-trees</artifactId>
<version>2.4.0</version>
</dependency>
<dependency>
<groupId>net.jodah</groupId>
<artifactId>expiringmap</artifactId>
<version>0.3.1</version>
</dependency>
<dependency>
......@@ -72,28 +65,26 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<configuration>
<filters>
<createSourcesJar>true</createSourcesJar>
<filter>
<artifact>com.googlecode.concurrent-trees:concurrent-trees</artifact>
<includes>
<include>com/googlecode/**</include>
</includes>
</filter>
<filter>
<artifact>com.google.guava:guava</artifact>
<artifactSet>
<excludes>
<exclude>**</exclude>
<!-- exclude OSGi-ready transitive dependencies -->
<exclude>com.google.guava:guava</exclude>
<exclude>com.esotericsoftware:*</exclude>
<exclude>org.ow2.asm:asm</exclude>
<exclude>org.objenesis:objenesis</exclude>
<exclude>io.netty:*</exclude>
</excludes>
</filter>
</artifactSet>
<filters>
<filter>
<artifact>net.jodah.expiringmap:*</artifact>
<artifact>com.googlecode.concurrent-trees:concurrent-trees</artifact>
<includes>
<include>net/jodah/expiringmap/**</include>
<include>com/googlecode/**</include>
</includes>
</filter>
......@@ -121,7 +112,7 @@
<configuration>
<instructions>
<Export-Package>
com.googlecode.concurrenttrees.*;net.kuujo.copycat.*;net.jodah.expiringmap.*
com.googlecode.concurrenttrees.*;net.kuujo.copycat.*
</Export-Package>
</instructions>
</configuration>
......