Second-Generation Packages (Salesforce Beta)

Updated 1 week ago by Copado Solutions

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:

  1. 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.
  2. Feature branch development and testing.
  3. Packages that are built directly from the source.
  4. 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.


How did we do?