Upgrade gradle to version 1.12 and add gradle wrapper