Add a way to fetch the plugin API version on building a plugin