title: How should i set main class for Spring Boot application in Gradle?
body: <p>I read spring boot documentation and i see there are at least 2 ways to set main class:</p>
  
  <pre><code>bootRepackage {
      mainClass = 'demo.Application'
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>springBoot {
      mainClass = "demo.Application"
  }
  </code></pre>
  
  <p>Which one should i use or they are both required for different tasks? I do not want to repeat myself.</p>