Hi guys,
I simply want to read out my plugin version, defined in pom.xml, in a java class.
I currently have a blackout... can someone help me?
thanks
Community moderators have prevented the ability to post new answers.
Thanks Alex Perez. The correct line is:
ComponentAccessor.getPluginAccessor().getPlugin("plugin-key").getPluginInformation().getVersion();
ComponentAccessor.getPluginAccessor.getPlugin("plugin-key") ...getVersion?
plugin-key is supposed to be taken from atlassian-plugin.xml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
how do I acceess `plugin-key` from java code? Is there a simple programmatic way to access the values in `atlassian-plugin.xml`?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.