Some additional configuration may be required if you use private dependencies not hosted on the default registries, depending on package manager.
For maven your .m2/settings.xml
needs to be configured for the specific registry you wish to use, see the settings documentation for more details.
For more information about how to set this up for GitLab specifically check out the documentation.