title: How do I set task properties in a Gradle Plugin
body: <p>I am creating a gradle plugin to apply the sonar-runner plugin and default many of the values such as the sonar host URL and the sonar JDBC URL. I cannot figure out how to set the properties though.</p>
  
  <p>When I set this up in build.gradle I use:</p>
  
  <pre><code>apply plugin: 'sonar-runner'
  
  sonarRunner {
      sonarProperties {
          property 'sonar.host.url', 'http://mySonar.company.com'
          property 'sonar.jdbc.url', 'jdbc:mysql://127.0.0.1:1234/sonar'
      }
  }
  </code></pre>
  
  <p>My gradle plugin looks like: </p>
  
  <pre><code>class MySonarPlugin implements Plugin&lt;Project&gt; {
      @Override
      void apply(Project project) {
          project.apply plugin: 'sonar-runner'
          project.configurations {
              sonarRunner {
                  sonarProperties {
                      property 'sonar.host.url', 'http://mySonar.company.com'
                      property 'sonar.jdbc.url', 'jdbc:mysql://127.0.0.1:1234/sonar'
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>With this setup I get a <code>No signature of method</code> exception. How should I be setting these properties?</p>