modify gradle to generate the jar correctly