Add gradle support

seems to work. not highly tested.