title: Gradle wsdl generating
body: <p>I want to generate java files from wsdl. I try to use <a href="https://github.com/nilsmagnus/wsdl2java" rel="nofollow noreferrer">wsdl2java</a> gradle plugin. I define the plugin:</p>
  <pre><code>subprojects {
  buildscript{
      repositories{
          jcenter()
          mavenCentral()
      }
      dependencies {
          classpath 'no.nils:wsdl2java:0.10'
      }
  }
  
  
  apply plugin: 'java'
  apply plugin: 'eclipse'
  apply plugin: 'maven-publish'
  apply plugin: 'application'
  apply plugin: 'no.nils.wsdl2java'
  ....
  }
  </code></pre>
  <p>but I got this error:</p>
  <pre><code>&gt; Plugin with id 'no.nils.wsdl2java:no.nils:wsdl2java' not found.
  </code></pre>
  <p>I checked the syntax (many times it is good). I googled for the plugin, it is used by many people.</p>
  <p>Does anybody have an idea what is going wrong?</p>
  <p><strong>Upd:</strong></p>
  <p>I have a main gradle where the plugins defined, and there are three sub project, where I want to use this plugin.</p>
  <p>I defined the sub projects in the <code>settings.gradle</code>:</p>
  <pre><code>include 'project1', 'project2', 'project3'
  </code></pre>
  <p>I made a folder and the <code>build.gradle</code> file for each project.</p>
  <p>If I commented out the  <code>apply plugin: 'no.nils.wsdl2java'</code> in the main <code>build.gradle</code> and the <code>wsdl2java</code> methods in the sub projects the gradle works fine.</p>