Deprecated and unused code in build.gradle removed