How do I create a configuration plugin (no new tasks)?

The docs have plenty of examples of how to add a custom plugin that supplies a new task. How do I construct a plugin that has no tasks, just configuration? How about one with a method? - the use case is a method to determine the local svnRevision, which then is used to add a line to the jar manifest.

thank you.