How might one DISPLAY the version of a plugin as it is being applied?


(Steve Cohen) #1

I am developing a group of plugins. There will be a period of time when this group will not be stable - new enhancements are expected to be requested, bugs found and fixed, etc.It would be a useful thing to know what version of the plugin is actually being applied as the project builds.

There are, of course, many ways to tell a gradle build script what version of a plugin to apply. How may a project retrieve information about the plugins it has applied or is applying so that it may be displayed? In other words, what project method allows access to the metadata about plugins it has applied? I see PluginManager.findPlugin() but this returns an AppliedPlugin object which does NOT contain a version number. Or maybe there is a way for some particualr version of a plugin to stow its own version number at the time it is built?