Added function to use gradle wrapper more effectively