Update build.gradle

Adds the wrapper task to the build file and all the files needed to execute using the wrapper. Also adds Java version to the build file and updates the gitignore to exclude meta files.