From 54624082ea61fab217d14a56920b19634e3e16e4 Mon Sep 17 00:00:00 2001 From: Christian Edward Gruber Date: Thu, 5 Feb 2015 15:08:40 -0800 Subject: [PATCH 1/4] Ignore maven shade plugin's dependency reduced pom.xml --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 7e13358950e..f05f56746fe 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,5 @@ classes obj .DS_Store + +dependency-reduced-pom.xml From d4b429c368a1f6e598081cc65a8d5a20ecc85be3 Mon Sep 17 00:00:00 2001 From: Christian Edward Gruber Date: Thu, 5 Feb 2015 15:09:17 -0800 Subject: [PATCH 2/4] Shade the processor plugin, excluding from relocation any public APIs. --- compiler/pom.xml | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/compiler/pom.xml b/compiler/pom.xml index 343c89ec9b1..9663c15b887 100644 --- a/compiler/pom.xml +++ b/compiler/pom.xml @@ -129,23 +129,6 @@ - - org.apache.maven.plugins - maven-assembly-plugin - - - jar-with-dependencies - - - - - package - - single - - - - org.apache.maven.plugins maven-invoker-plugin @@ -173,6 +156,33 @@ + + org.apache.maven.plugins + maven-shade-plugin + 2.3 + + + package + shade + + true + + + + com.google.guava + + com.google.auto.service + com.google.auto.value + + com.google.dagger:dagger + com.google.dagger:dagger-producers + javax.inject + + + + + + From 74d6b3de50e2c14b34426402b085ce3c2da7a296 Mon Sep 17 00:00:00 2001 From: Christian Edward Gruber Date: Wed, 1 Apr 2015 11:50:52 -0700 Subject: [PATCH 3/4] relocate common. --- compiler/pom.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compiler/pom.xml b/compiler/pom.xml index 9663c15b887..fb38a8575ed 100644 --- a/compiler/pom.xml +++ b/compiler/pom.xml @@ -179,6 +179,12 @@ javax.inject + + + com.google.auto.common + dagger.shaded.auto.common + + From 3425e8560b5cfcd248d154768c83410cc7f3f69f Mon Sep 17 00:00:00 2001 From: Christian Edward Gruber Date: Wed, 1 Apr 2015 13:39:31 -0700 Subject: [PATCH 4/4] Fix xml style. --- compiler/pom.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/pom.xml b/compiler/pom.xml index fb38a8575ed..03b96b106b2 100644 --- a/compiler/pom.xml +++ b/compiler/pom.xml @@ -163,7 +163,9 @@ package - shade + + shade + true