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