1 How to recreate this JAR 2 3 ========================================================= 4 5 Download the latest google-api-java-client library from 6 https://developers.google.com/api-client-library/java/google-api-java-client/download 7 8 Download jarjar from 9 https://code.google.com/p/jarjar/ 10 11 Install Apache Ant (if not already installed) 12 13 ========================================================= 14 15 Create the following directory structure 16 17 base/ 18 |-- jars/ 19 |-- lib/ 20 \-- build.xml 21 22 ========================================================= 23 24 Put the jarjar-<version>.jar in base/lib 25 26 Extract and place the .jar files from the client lib you want in base/jars 27 for 1.20.0 we 28 29 INCLUDED 30 + commons-logging-1.1.1.jar 31 + google-api-client-1.20.0.jar 32 + google-api-client-jackson2-1.20.0.jar 33 + google-api-client-java6-1.20.0.jar 34 + google-http-client-1.20.0.jar 35 + google-http-client-jackson2-1.20.0.jar 36 + google-oauth-client-1.20.0.jar 37 + google-oauth-client-java6-1.20.0.jar 38 + google-oauth-client-jetty-1.20.0.jar 39 + httpclient-4.0.1.jar 40 + httpcore-4.0.1.jar 41 + jackson-core-2.1.3.jar 42 + jetty-6.1.26.jar 43 + jetty-util-6.1.26.jar 44 + jsr305-1.3.9.jar 45 46 and EXCLUDED 47 - google-api-client-android-1.20.0.jar 48 - google-api-client-appengine-1.20.0.jar 49 - google-api-client-gson-1.20.0.jar 50 - google-api-client-protobuf-1.20.0.jar 51 - google-api-client-servlet-1.20.0.jar 52 - google-api-client-xml-1.20.0.jar 53 - google-http-client-android-1.20.0.jar 54 - google-http-client-appengine-1.20.0.jar 55 - google-http-client-gson-1.20.0.jar 56 - google-http-client-jackson-1.20.0.jar 57 - google-http-client-jdo-1.20.0.jar 58 - google-http-client-protobuf-1.20.0.jar 59 - google-http-client-xml-1.20.0.jar 60 - google-oauth-client-appengine-1.20.0.jar 61 - google-oauth-client-servlet-1.20.0.jar 62 - guava-jdk5-13.0.jar 63 - gson-2.1.jar 64 - jackson-core-asl-1.9.11.jar 65 - jdo2-api-2.3-eb.jar 66 - protobuf-java-2.4.1.jar 67 - transaction-api-1.1.jar 68 - xpp3-1.1.4c.jar 69 70 ========================================================= 71 72 create a build.xml 73 74 <project name="gapiRepackage"> 75 <target name="jar"> 76 <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpath="lib/jarjar-1.4.jar"/> 77 <jarjar jarfile="dist/google-api-java-client-min-repackaged-1.20.0.jar"> 78 <zipgroupfileset dir="jars" includes="*.jar"/> 79 <rule pattern="org.apache.**" result="com.google.api.client.repackaged.@0"/> 80 <rule pattern="com.google.gson.**" result="com.google.api.client.repackaged.@0"/> 81 <rule pattern="com.google.protobuf.**" result="com.google.api.client.repackaged.@0"/> 82 <rule pattern="com.fasterxml.**" result="com.google.api.client.repackaged.@0"/> 83 <rule pattern="org.codehaus.**" result="com.google.api.client.repackaged.@0"/> 84 <rule pattern="org.mortbay.**" result="com.google.api.client.repackaged.@0"/> 85 <rule pattern="org.xmlpull.**" result="com.google.api.client.repackaged.@0"/> 86 <rule pattern="javax.annotation.**" result="com.google.api.client.repackaged.@0"/> 87 <rule pattern="javax.xml.**" result="com.google.api.client.repackaged.@0"/> 88 </jarjar> 89 </target> 90 </project> 91 92 ========================================================= 93 94 run "ant jar" to create a combined, reduced, repackaged jar. 95 it will be found as base/dist/google-api-java-client-min-repackaged-1.20.0.jar 96