Migrate dependency to build.gradle