Use gradle one-jar plugin.