Settings | Build, Execution, Deployment | Build To...
# intellij
y
Settings | Build, Execution, Deployment | Build Tools | Gradle | Runner | [x] Delegate IDE build/run actions to Gradle
a
doesn't seem to work for me, but i'll move the issue to the intellij team - thx