Remove unused dependencies from gradle.