port bash script as gradle tasks

Here is a pur gradle version of dex splitting. would be great if you can review wether i forget something. for some simple tests looks like it do what it should. split the content in two dex files.