title: osgi.wiring.package; (&(osgi.wiring.package=org.json)(version>=0.0.0)) Unresolved requirements:
body: <p>
  I am compiling a java plugin that uses org.json. Before I included this the plugin was able to compiling and run correctly. I have seen similar problems on stackoverflow, but none of them address this problem using gradle. </p>
  
  <p>In the top of my classes I have the following</p>
  
  <pre><code>import org.json.JSONArray;
  import org.json.JSONObject;
  </code></pre>
  
  <p>
  My gradle build script contains the following:</p>
  
  <pre><code>repositories {
      maven {
          url "http://repo.dotcms.com/artifactory/libs-release"
      }
      mavenCentral()
      flatDir {
          dirs 'src/main/resources/localLibs'
      }
  }
  
  sourceCompatibility = 1.8
  targetCompatibility = 1.8
  
  dependencies {
      compile fileTree(dir: 'src/main/resources/libs', include: '*.jar')
      compile (group: 'com.dotcms', name: 'dotcms', version: '4.2.2'){
          transitive = true
      }
      compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.8.8'
      compile group: 'org.json', name: 'json', version: '20170516'
      compile group: 'org.simpleflatmapper', name: 'sfm-csv', version: '3.14.1'
      /* Specifying an alternate configuration (see above 'configurations') keeps servlet-api.jar from being added to our own output Jar. */
      providedCompile "javax.servlet:javax.servlet-api:3.1.0"
      testCompile group: 'junit', name: 'junit', version: '4.12'
  }
  
  jar {
      manifest {
          name = 'Symplicity SOAP API Web Service'
          symbolicName = 'Symplicity SOAP API Web Service'
          instruction 'Bundle-Vendor', 'JustinKubicek'
          instruction 'Bundle-Name', 'Symplicity SOAP API Web Service'
          instruction 'Bundle-Description', 'This is a plugin to access the Symplicity SOAP API Web Service'
          instruction 'Bundle-DocURL', 'https://bitbucket.org/justinkubicek/symplicity-soap-api-plugin'
          instruction 'Bundle-Activator', 'com.symplicitysoapapi.soapapitool.osgi.Activator'
          instruction 'DynamicImport-Package', '*'
          instruction 'Import-Package', '*;version=0;'
      }
  }    
  </code></pre>
  
  
  
  <p>
  The error I am getting is this here.</p>
  
  <pre><code>javax.servlet.ServletException: Unable to resolve Symplicity SOAP API Web Service
  [197](R 197.0): missing requirement [Symplicity SOAP API Web Service [197](R 197.0)]
  osgi.wiring.package; (&amp;(osgi.wiring.package=org.json)(version&gt;=0.0.0))
  Unresolved requirements: [[Symplicity SOAP API Web Service [197](R 197.0)]
  osgi.wiring.package; (&amp;(osgi.wiring.package=org.json)(version&gt;=0.0.0))]
  Unable to start bundle
  at com.dotmarketing.portlets.osgi.AJAX.OSGIAJAX.start(OSGIAJAX.java:122)
  ~[dotcms_4.2.2_999999.jar:?]
  </code></pre>