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 IDEA-96615 and GRADLE-2198, but I have some other use cases, such as perhaps generating some source files.
Based upon the documentation from IDEA, I'm not running gradle idea
prior to importing because that generates the old style of projects, not the directory based .idea
one.
Let me know if I'm misinterpreting what you want, but I'll give it a try.
(this solution works for 2016.2
, and I believe for 15
)
What you can do is go to View -> Tool Windows -> Gradle
Then, click the little Gradle symbol, and it'll let you execute a gradle task:
Hope this helps :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With