title: How to set max memory size of kotlin compiler
body: <p>I'm trying to compile large kotlin project that use Gradle. So I can't just edit settings of Kotlin compiler in intellij IDEA because they will be overridden.<br>
  I've tried to set <code>freeCompilerArgs</code> </p>
  
  <pre><code>allprojects {
      apply plugin: 'java'
      apply plugin: 'kotlin'
      apply plugin: 'idea'
  
      compileKotlin {
          kotlinOptions {
              freeCompilerArgs = ['-Xmx10G', '-Xjvm-default=enable']
          }
      }
  }
  </code></pre>
  
  <p>But it didn't help. 
  What I'm doing wrong?</p>