Switch to gradle for dependency management.