Added an example of using the plug-in as part of the init script.  Placing the logic in the afterEvaluate block causes the plug-in to think nothing should be published!  Use --init-script init-script.gradle to run with the custom initialization script.