adding sourceCompatibility and encoding config to build.gradle