From 76aec75e4ff9b7a1bb3c8b1407b4725f71a8341c Mon Sep 17 00:00:00 2001 From: Trever Shick Date: Sun, 16 Oct 2016 18:35:47 -0400 Subject: [PATCH] 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 --- README.md | 18 +++++++++++++++--- pom.xml | 16 +++++++++------- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a642ba6c..0aa3da78 100644 --- a/README.md +++ b/README.md @@ -12,16 +12,28 @@ It's useful when you're developing a new project and need some pretty data for s Usage ----- -In pom.xml, add following between ` ... ` +In pom.xml, add the following xml stanza between ` ... ` ```xml com.github.javafaker javafaker - 0.10 + 0.11 ``` +Since version 0.11, the ```snake-yaml``` files are no longer included in the main jar. If you still wish +to use the shaded jar, you need to use the 'deps' classifier in the Maven coordinates (shown below). +```xml + + com.github.javafaker + javafaker + 0.11 + deps + +``` + + For gradle users, add the following to your build.gradle file. ```groovy @@ -30,7 +42,7 @@ repositories { } dependencies { - testCompile group: 'com.github.javafaker', name: 'javafaker', version: '0.10' + testCompile group: 'com.github.javafaker', name: 'javafaker', version: '0.11' } ``` diff --git a/pom.xml b/pom.xml index 0ec57470..96177c93 100644 --- a/pom.xml +++ b/pom.xml @@ -175,19 +175,21 @@ org.apache.maven.plugins maven-shade-plugin 2.4.3 - - - - com.github.bmoliveira:snake-yaml - - - package shade + + true + deps + + + com.github.bmoliveira:snake-yaml + + +