added gradle wrapper
removed usage of deprecated gradle api in build