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