title: Expression 'application' cannot be invoked as a function
body: <p>I have a Kotlin application with kotlin-dsl gradle files. I'd like to set <code>mainClassName</code> to be able to use <code>com.github.johnrengelman.shadow</code>.</p>
  <p>I'd like use the application for this and I gradle cannot resolve it even if I have <code>application</code> plugin applied.</p>
  <p>Kotlin version: 1.6.10</p>
  <p><a href="https://i.stack.imgur.com/Gg9H0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gg9H0.png" alt="enter image description here" /></a></p>
  <p>After a lot of research it looks like I'm the only one who doesn't have application in the gradle file.</p>