Improved the gradle script.