title: Jersey + Gradle with maven dependencies not working
body: <p>Hi I am following the jersey sun documentation. I have deployed before this simple pom.xml before </p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-server&lt;/artifactId&gt;
      &lt;version&gt;1.14&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-grizzly2&lt;/artifactId&gt;
      &lt;version&gt;1.14&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>and Add the repository</p>
  
  <pre><code>  &lt;url&gt;https://maven.java.net/content/repositories/snapshots/&lt;/url&gt;
  </code></pre>
  
  <p>Nevertheless when I try to do this with gradle, it does not seem to be working, is not downloading the rest of dependencies that requires and aparently I have to explicitly put  javax.ws.rs:jsr311-api:1.1.1 and even jersey-core. This is my build.gradle.</p>
  
  <pre><code>apply plugin: 'java'
  apply plugin: 'eclipse'
  apply plugin: 'jetty'
  
  sourceCompatibility = 1.6
  
  repositories {
      mavenCentral()
      maven {
          url 'https://maven.java.net/content/repositories/snapshots/'
      }
  }
  
  List compileLibraries =['com.sun.jersey:jersey-server:1.14',
                          'com.sun.jersey:jersey-grizzly2:1.14',
                          'com.sun.jersey:jersey-core:1.14',
                          'javax.ws.rs:jsr311-api:1.1.1']
  
  
  dependencies {
      compile (compileLibraries )
  
      testCompile group: 'junit', name: 'junit', version: '4.+'
  }
  
  httpPort = 8888
  stopPort = 9451
  stopKey = 'foo'
  </code></pre>
  
  <p><strong>Is this proper gradle behaviour? How can I do as same as with maven?</strong></p>
  
  <p><strong>Edit</strong></p>
  
  <p>Just for the sake of this and if somebody is interesting in seeing a gradle build file that work with gradle you can go to</p>
  
  <p><a href="https://github.com/necronet/XTradeJerseyimpl/" rel="nofollow">https://github.com/necronet/XTradeJerseyimpl/</a></p>
  
  <p>Thanks!!</p>