[IDEA] Allow plugins to specify maven style version requirements for mirth server version #5672
Labels
enhancement
New feature or request
Internal-Issue-Created
An issue has been created in NextGen's internal issue tracker
RS-10085
triaged
Is your feature request related to a problem? Please describe.
Plugins that require no changes upon a new mirth release still need to be updated because they must explicitly state in the
plugin.xml
the new mirth version number.Describe your use case
I would like a single release of my plugin to support past, current, and future versions of mirth as long as no breaking changes have been introduced on the server.
Describe the solution you'd like
Plugins must contain an xml serialized version of an instance of the MetaData class, which has a String property named
mirthVersion
. The open source plugins in this repository always have a value in this field which exactly matches the server version. However, it is currently supported to have a comma separated list of versions as well.It would be useful to list versions in the same manner as library dependencies in a maven pom file as described here. In addition to lists of versions, it supports both closed and open-ended ranges with holes.
I believe this method is the only one that would need to be changed to accommodate this.
connect/server/src/com/mirth/connect/server/ExtensionLoader.java
Lines 142 to 167 in e0db549
Describe alternatives you've considered
Additional context
If issue #4869 were resolved in mirth
4.3.0
, a ServicePlugin known to work in version3.4.0
and still does not require any other changes to run could specify the mirthVersion as[3.4.0,3.9.0),[4.3.0,)
and support all of those and future versions with a single release. If an improvement is made to the plugin which still supports all of those versions, it only require a single new release to make the new features available in older mirth versions. For a plugin in maintenance mode, the plugin will not need a new release until mirth puts out a change that breaks it.This request is closely related to #4988
The text was updated successfully, but these errors were encountered: