How do I define several modules in a single gradle project?

If I remember correctly this is not possible at least not yet. There was a post about this already here with an answer from the jetbrains team.
As far as I am aware the only option to reduce the js output size right now is still only the dce-tool. Well and sure you can create multiple gradle modules, but that would indeed be not really optimal.