title: Why can't groovy deal with curly braces?
body: <p>In an Android Studio (and presumably ANY) gradle file, the following code works:</p>
  
  <pre><code>task build {
  }
  </code></pre>
  
  <p>And one minor change causes a complete meltdown:</p>
  
  <pre><code>task build
  {
  }
  </code></pre>
  
  <p>This has come up in other threads before, but in the context of fixing the build files. My question is why can't gradle/groovy be made to deal with either bracing style? Many other languages cope just fine with it, so what's the big deal here?</p>