Update sample to gradle format