title: Execution failed for task: java.lang.StackOverflowError
body: <p>Could you help me with one Gradle's problem?
  In my current project, we use Gradle to build our huge project.
  And when I change some lines in my code and try to run my project -&gt; I have an error:</p>
  <blockquote>
  <p>&quot;Execution failed for task: 'Taskname'
  java.lang.StackOverflowError
  *Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights&quot;</p>
  </blockquote>
  <p>Then I run 2 commands: &quot;.\gradlew clean&quot; and &quot;.\gradlew --stop&quot; and run my project again -&gt; and the project builds successfully.
  I used Intellij.</p>
  <p>What is wrong that I need each time to clean and stop Gradle?
  Is it possible to solve it?</p>