Skip to content

Instantly share code, notes, and snippets.

@oza
Last active April 19, 2017 01:34
Show Gist options
  • Save oza/53231f37f5394471e73b071af999d353 to your computer and use it in GitHub Desktop.
Save oza/53231f37f5394471e73b071af999d353 to your computer and use it in GitHub Desktop.
how to replace imports of Guava
find . -name "*.java" | xargs sed -i -e "s/import\ com\.google\.common\./import org.apache.hadoop.shaded.com.google.common./"
find . -name "*.java" | xargs sed -i -e "s/import\ static\ com\.google\.common\./import static org.apache.hadoop.shaded.com.google.common./"

git diff --ignore-space-change > 1.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment