Replacing Perl build scripts with gradle script.