title: Error while replacing jetty plugin to gretty plugin gradle
body: <p>I have a JAX-RS project which have jetty plugin in gradle. I want to replace jetty plugin with gretty as jetty is not supported in gradle 4 and other versions. I get following errors while running gretty plugin.</p>
  
  <p>Execution failed for task ':appRunWar'.</p>
  
  <blockquote>
    <p>java.lang.Exception: com/sun/jersey/spi/inject/InjectableProvider</p>
  </blockquote>
  
  <p>build.gradle code containing jetty plugin</p>
  
  <pre><code>apply plugin: 'java'
  apply plugin: 'war'
  apply plugin: 'jetty'
  apply plugin: 'eclipse'
  jettyRun {
      httpPort = 8080
      reload = 'automatic'
      scanIntervalSeconds = 2
      daemon = false
  }
  //other things....
  </code></pre>
  
  <p>build.gradle code for replacing jetty with gretty</p>
  
  <pre><code>apply plugin: 'java'
  apply plugin: 'war'
  apply from: 'https://raw.github.com/akhikhl/gretty/master/pluginScripts/gretty.plugin'
  apply plugin: 'eclipse' 
  gretty {
      httpPort = 8080
      //contextPath = '/'
      servletContainer = 'jetty9'
      httpEnabled = true
  }
  //other things...
  </code></pre>