Put snake-yaml binaries into 'deps' shaded jar (#138)

Remove the snake-yaml binaries from the main jar and include
for backwards compatibility sake in the 'deps' jar created by the
maven-shade-plugin.

resolves DiUS/java-faker#130
This commit is contained in:
Trever Shick
2016-10-16 18:35:47 -04:00
committed by Ricky Yim
parent d21f85249e
commit 76aec75e4f
2 changed files with 24 additions and 10 deletions
+9 -7
View File
@@ -175,19 +175,21 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<artifactSet>
<includes>
<include>com.github.bmoliveira:snake-yaml</include>
</includes>
</artifactSet>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>deps</shadedClassifierName>
<artifactSet>
<includes>
<include>com.github.bmoliveira:snake-yaml</include>
</includes>
</artifactSet>
</configuration>
</execution>
</executions>
</plugin>