Second-Generation Managed Packages
Second-Generation Packages Overview
Available from Copado v12, second-generation packaging (2GP) enables system integrators to create packages in a source-driven development environment. Leveraging this feature, you can develop and distribute packages to your customers.
Some advantages of using second-generation packages:
- Multiple packages per namespace, so that you can better organize your source and easily share Apex code. You can use public Apex classes across packages rather than global Apex classes.
- Feature branch development and testing.
- Packages that are built directly from the source.
- Ease of development and distribution of dependent packages.
Creating a Second Generation Package
The creation process is the same as that of unlocked packages, the only difference is that in 2GP the namespace value is mandatory.