Add gradle wrapper tasks
Run gradle wrapper in post script
Removing unused imports
Backport to 1.7