#504 switch to new gradle build system