Change to using gradle as build system