Added version and source compatibility to Gradle buildfile.