migrating build to gradle.