Adapt SNAPSHOT plugin api example to the 3.1 version Change-Id: I6de49e13972e052311b79b3c01e101b46f82c537