Run generate after createModule task
Source formatting, moving generate task to inside modules.gradle
Pass details to generate task