title: Gradle Kotlin DSL can't find java.awt package to use browser
body: <pre><code>tasks.register(&quot;openTestReports&quot;) {
      doLast {
      java.net.URL(&quot;build/reports/tests/test/index.html&quot;)
      }
  }
  </code></pre>
  <p>fails to work as it says</p>
  <blockquote>
  <p>Unresolved reference: net</p>
  </blockquote>