update to latest newrelic api
use gradle wrapper
use metrics 3.1.0