Build redesigned from ant files to single gradle build