Save/restore info about JVM runtime to use in repository

Dear guru,

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 :slight_smile: 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,

You can persist run configurations to a file in your repository.

You can commit the proper run configuration to your version control. This way you get the proper run configuration execution for all your branches.