Different plugin artifact based on Jira version


We are planning to release 2 plugin artifacts in the Marketplace, 1 for Jira 7 and 1 for Jira 8. Will Jira be able to detect the right (compatible) artifact from the Marketplace and install it?

Ex: The customer has installed Jira 7.6, so if the customer installs the plugin from the Marketplace he will pickup the artifact for Jira 7.

In the Marketplace UI - just pick the correct version ranges for Jira - you should be good.