title: Custom Gradle Plugin ID not found
body: <p>I'm writing a Gradle plugin and I'm failing to get the <code>apply plugin:</code> command to work in the Gradle script that uses the plugin. I'm using Gradle 1.1.</p>
  
  <p>I've build the plugin with <code>clean build</code> and I'm attempting to add it to the Gradle build via a flat repo for now. That seems to be working but Gradle isn't picking up that there is a plugin with the ID <code>test-plugin</code>. The project name in the plugin's <code>settings.gradle</code> is <code>test-plugin</code> and the properties file in <code>META-INF/gradle-plugins</code> is also <code>test-plugin.properties</code>. I'm not sure where else I can specify the plugin ID.</p>
  
  <p>The <code>build.gradle</code> file in the project that is using the <code>test-plugin</code>:</p>
  
  <pre><code>repositories {
    flatDir name: 'libs', dirs: "../build/libs"
  }
  
  dependencies {
    compile 'test:test-plugin:0.1'
  }
  
  apply plugin: 'test-plugin'
  </code></pre>
  
  <p>Error from Gradle:</p>
  
  <pre><code>What went wrong:
  A problem occurred evaluating root project 'tmp'.
  Plugin with id 'test-plugin' not found.
  </code></pre>