When the GetIt Package Manager tool was first introduced in RAD Studio XE8, it was a great IDE feature that helped developers to discover new libraries, components and addons; or to find the latest versions of those ones that they have used for years. But the technology behind it was powerful enough to evolve and become so much more awesome. For example, RAD Studio 10.1 Berlin brought a brand new installation experience based on the GetIt foundations.
Another really nice feature introduced in RAD Studio 10.1 Berlin is the GetIt Dependencies tool, a new project options page to “link” GetIt libraries and components to our project. So, when the project is opened in another computer or another installation of RAD Studio, the IDE will look for those dependencies, and GetIt will automatically download and install them for you.
This makes a lot of sense when a new version of RAD Sudio is released. For example with RAD Studio 10.2 Tokyo, you just have to open your Berlin projects and, after a few steps, you could have them compiled and running (of course if there are no other dependencies or incompatibilities).
It simplifies a lot keeping my projects up to date. As I manage the components and libraries for my projects using GetIt, I don’t have to bother looking for updated and stable versions of them when a new RAD Studio version is released.
But let’s see how this feature works. For this example, I have installed several cool libraries and components in RAD Studio Berlin.
The next step is go to the Project Options page and select GetIt Dependencies. Then, simply check the packages required by the project and click OK.
Now, the project has linked those packages, and the IDE will be able to download them if they are not available.
For example, if we try to open the project on a clean RAD Studio 10.2 Tokyo installation, the IDE will report that there are missing dependencies and will offer to download them now.
Unfortunately, this option seems to have a bug (reported here), and we will get an error if we click Yes.
The solution is to download them from the Project Options page, as there’s a button to Install All Missing Packages. After clicking on it, GetIt will download all the required packages for the project one by one.
And that’s all, the project is now ready to be compiled in the new environment. IMHO, it’s a pretty nice feature and, as I said earlier, simplifies keeping our projects and libraries and components up to date.