Different versions of JQuery

For legacy reasons of old vs new code of an application, we have 2 versions of JQuery working at the same time in the page that we are using select2. So, we have JQuery and JQueryLegacy (I know that this is a very bad practice, but the legacy software sometimes doesn’t allow so much flexibility to implement things correctly) .

The problem is that when we load the select2 , it is avaliable for JQuery, the default JQuery, but not for the JQueryLegacy one. Maybe it is not a possible feature (to configure the Jquery library to “load” select2) but, is it possible to apply to a different version? or how the select2 is loaded into the avaliable Jquery?

Thanks a lot.