Stockmanagement module and Hibernate Search Upgrade

@slubwama @mseaton you committed most of the code to the module so I need your input.

We need to make changes in the module to support the new Hibernate Search version that is introduced in core 2.8.x

The changes are backwards incompatible. We either need to branch the module or put them in a 2.8.x submodule similar to how we handle things in e.g. openmrs-module-webservices.rest/omod-2.7 at master · openmrs/openmrs-module-webservices.rest · GitHub

There’s also an ongoing effort of migrating modules to a newer Java version, which may require branching the module anyway. @wikumc

The new Java version and upgraded Spring? is going to be introduced in core 3.x so it’s another thing to consider. If 2.8.x ever gets released and we want for the module to support it, we will need a different branch for 2.8.x and 3.x.

What would be the preferred approach here?

@raff a branch off that will lead to a 3.x series seems to be a better approach. Sofar the module has two release plans one of 1.x and another of 2.x in master. I know upgrading the module to use the latest would be a breaking change.