title: Kapt annotation processing - how to show full stacktrace
body: <p>I am working on a android project using Kotlin, Databinding and Room.
  Sometimes the build fails with a error message, containing no information about what exactly went wrong, except that it has something to do with the annotation processor (which can have many causes...).</p>
  
  <p>shortened Example:</p>
  
  <blockquote>
    <p>org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while executing org.jetbrains</p>
  </blockquote>
  
  <p>[more stack trace lines]</p>
  
  <blockquote>
    <p>Caused by: org.jetbrains.kotlin.kapt3.base.util.KaptBaseError: Error while annotation processing</p>
  </blockquote>
  
  <p>[even more stack trace lines]</p>
  
  <blockquote>
    <p>at org.jetbrains.kotlin.kapt3.base.Kapt.kapt(Kapt.kt:45)<br>
      ... 32 more</p>
  </blockquote>
  
  <p>Finding the cause, then means time consuming backtracking of my steps (and maybe using <code>git stash</code>) and guessing, when one the 32 hidden lines at the end seems likely to contain some useful information about what actually went wrong.</p>
  
  <p>So the question is: <strong>how to show the full stack trace?</strong></p>
  
  <p>I tried setting the <code>-Xmaxerrs 500</code> in my <code>build.gradle</code> as shown here <a href="https://kotlinlang.org/docs/reference/kapt.html#java-compiler-options" rel="noreferrer">https://kotlinlang.org/docs/reference/kapt.html#java-compiler-options</a> as well as various variants of this, I found on SE (sorry, don't remember which exactly).
  None made any difference. Maybe i put the block in the wrong part? (tried module level, android -> defaultConfig -> kapt)</p>