Switch to gradle for build and dependencies