title: Google Cloud Storage Java Client Library with Gradle
body: <p>Google promotes their new Java Client library here: <a href="https://developers.google.com/appengine/docs/java/googlecloudstorageclient/" rel="noreferrer">https://developers.google.com/appengine/docs/java/googlecloudstorageclient/</a></p>
  
  <p>Note: I am not talking about the native REST library. I want to work with the Java Client Library.</p>
  
  <p>On the website, Google does not specify the import directive for Gradle. For Maven, pom.xml looks like this:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.google.appengine.tools&lt;/groupId&gt;
      &lt;artifactId&gt;appengine-gcs-client&lt;/artifactId&gt;
      &lt;version&gt;RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>When I change this to work with my Gradle project, it doesn't work:</p>
  
  <pre><code>dependencies {
      compile 'com.google.appengine.tools:appengine-gcs-client:RELEASE'
  }
  </code></pre>
  
  <p>It finds the tools there, but the com.google.appengine.tools.cloudstorage cannot be resolved (it resolves tools, though).</p>
  
  <p>What I did then: I removed the library and seached for "gcs" in the Android Studio dependencies dialog; and it finds and adds the following directive to build.gradle:</p>
  
  <pre><code>dependencies {
      compile 'com.google.appengine.tools:appengine-gcs-client:0.3.9@jar'
  }
  </code></pre>
  
  <p>Same problem with that as before: tools is resolved, but not tools.cloudstorage.</p>
  
  <ul>
  <li>What am I doing wrong? Where does the library live/which import statement will I need to add to Gradle?</li>
  </ul>
  
  <p>I don't want to download the jar as I want my project to update jars automatically. mavenCentral() is set, and here is my full build.gradle file, just in case you need it:</p>
  
  <pre><code>apply plugin: 'java'
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      compile 'com.google.appengine.tools:appengine-gcs-client:0.3.9@jar'
      compile 'com.google.http-client:google-http-client-android:1.18.0-rc'
  }
  </code></pre>
  
  <p>Any help appreciated, thanks!</p>