I am working on the product with many supported versions. Each version is stored in separate repository branch. Some of them are pretty old so should be compiled with old version of JVM. From time to time I need to propagate some changes to old versions so I need to change gradle run configuration settings in order to compile the project. It’s very annoying I am just wondering whether is it possible to save somehow info about JVM runtime to use in the repository in order to restore it automatically each time when corresponding branch is checked out.
Thanks in advance,