title: Accessing source sets with kotlin-dsl for gradle
body: <p>How do I convert the following groovy snippet</p>
  
  <pre><code>URL[] urls = sourceSets.main.runtimeClasspath.files.collect {
      it.toURI().toURL()
  }
  </code></pre>
  
  <p>to kotlin-dsl? Particularly the property sourceSets doesn't seem to available and fails to compile.</p>
  
  <p>How do I access the sourceSets in a task?</p>