Preliminary maven to gradle conversion

Should build correctly, needs testing but project won't build.