title: Pass list of Strings to gradle task property without using parentheses
body: <p>I have a <code>build.gradle</code> like so, with a tiny little custom task:</p>
  
  <pre><code>task ListOfStrings(type: ExampleTask, description: 'Prove we can pass string list without parentheses') {
      TheList ('one', 'two', 'three') // this works but it's not beautiful
  }
  public class ExampleTask extends DefaultTask {
      public void TheList(String... theStrings) {
          theStrings.each {
              println it
          }
      }
  }
  </code></pre>
  
  <p>In the <code>test.testLogging</code> block is <code>events</code>: and we can pass a comma-separated list of strings <strong>without parentheses</strong>.</p>
  
  <pre><code>test {
      outputs.upToDateWhen { false }
      testLogging {
          showStandardStreams true
          exceptionFormat 'short'
          events 'passed', 'failed', 'skipped' // this is beautiful
      }
  }
  </code></pre>
  
  <p>My question is: how do I write my <code>ExampleTask</code> so I can write <code>TheList</code> as a simple list of comma-separated strings <strong>omitting the parentheses</strong>?</p>
  
  <p>My perfect-world scenario is to be able to express the task like so:</p>
  
  <pre><code>task ListOfStrings(type: ExampleTask, description: 'Prove we can pass string list without parentheses') {
      TheList 'one', 'two', 'three'
  }
  </code></pre>