I really like the Gradle integration with IntelliJ IDEA. The way the automatic Gradle Sync works is awesome.
But is it possible to execute some Gradle task always upon the IntelliJ IDEA Gradle Sync? The use case is that there are various generated source files which I would like to generate during Gradle Sync so that after the Gradle Sync, the project compiles and just works within IntelliJ IDEA.