@dh44t Idea is still a little shaky on this front. You probably need to be on an EAP version of Idea for it to work ok. Also if your project doesn't follow the standard gradle source layout conventions you might run into a problem I found:
https://youtrack.jetbrains.com/issue/KT-20921