added gradle options, also changed compatibilty to jdk8