1 How to recreate this JAR 2 3 ========================================================= 4 5 Download the latest google-api-java-client library from 6 https://code.google.com/p/google-api-java-client/ 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.18.0-rc we 28 29 INCLUDED 30 + commons-logging-1.1.1.jar 31 + google-api-client-1.18.0-rc.jar 32 + google-api-client-jackson2-1.18.0-rc.jar 33 + google-api-client-java6-1.18.0-rc.jar 34 + google-http-client-1.18.0-rc.jar 35 + google-http-client-jackson2-1.18.0-rc.jar 36 + google-oauth-client-1.18.0-rc.jar 37 + google-oauth-client-java6-1.18.0-rc.jar 38 + google-oauth-client-jetty-1.18.0-rc.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.18.0-rc.jar 48 - google-api-client-appengine-1.18.0-rc.jar 49 - google-api-client-gson-1.18.0-rc.jar 50 - google-api-client-protobuf-1.18.0-rc.jar 51 - google-api-client-servlet-1.18.0-rc.jar 52 - google-api-client-xml-1.18.0-rc.jar 53 - google-http-client-android-1.18.0-rc.jar 54 - google-http-client-appengine-1.18.0-rc.jar 55 - google-http-client-gson-1.18.0-rc.jar 56 - google-http-client-jackson-1.18.0-rc.jar 57 - google-http-client-jdo-1.18.0-rc.jar 58 - google-http-client-protobuf-1.18.0-rc.jar 59 - google-http-client-xml-1.18.0-rc.jar 60 - google-oauth-client-appengine-1.18.0-rc.jar 61 - gson-2.1.jar 62 - jackson-core-asl-1.9.11.jar 63 - jdo2-api-2.3-eb.jar 64 - protobuf-java-2.4.1.jar 65 - transaction-api-1.1.jar 66 - xpp3-1.1.4c.jar 67 68 ========================================================= 69 70 create a build.xml 71 72 <project name="gapiRepackage"> 73 <target name="jar"> 74 <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpath="lib/jarjar-1.4.jar"/> 75 <jarjar jarfile="dist/google-api-java-client-min-repackaged.jar"> 76 <zipgroupfileset dir="jars" includes="*.jar"/> 77 <rule pattern="org.apache.**" result="com.google.api.client.repackaged.@0"/> 78 <rule pattern="com.google.gson.**" result="com.google.api.client.repackaged.@0"/> 79 <rule pattern="com.google.protobuf.**" result="com.google.api.client.repackaged.@0"/> 80 <rule pattern="com.fasterxml.**" result="com.google.api.client.repackaged.@0"/> 81 <rule pattern="org.codehaus.**" result="com.google.api.client.repackaged.@0"/> 82 <rule pattern="org.mortbay.**" result="com.google.api.client.repackaged.@0"/> 83 <rule pattern="org.xmlpull.**" result="com.google.api.client.repackaged.@0"/> 84 <rule pattern="javax.annotation.**" result="com.google.api.client.repackaged.@0"/> 85 <rule pattern="javax.xml.**" result="com.google.api.client.repackaged.@0"/> 86 </jarjar> 87 </target> 88 </project> 89 90 ========================================================= 91 92 run "ant jar" to create a combined, reduced, repackaged jar. 93 it will be found as base/dist/google-api-java-client-min-repackaged.jar 94