title: How do you run a Gradle task after IntelliJ imports a project from Gradle?
body: <p>I'd like to be able to trigger the execution of a Gradle task right after IDEA imports my projects. Currently, I'm attempting to work around <a href="https://youtrack.jetbrains.com/issue/IDEA-96615">IDEA-96615</a> and <a href="https://issues.gradle.org/browse/GRADLE-2198">GRADLE-2198</a>, but I have some other use cases, such as perhaps generating some source files.</p>
  
  <p>Based upon the documentation from IDEA, I'm <strong>not</strong> running <code>gradle idea</code> prior to importing because that generates the old style of projects, not the directory based <code>.idea</code> one.</p>