Newer Version Available
Advanced Project Configuration Parameters for Second-Generation Managed Packages
As your managed 2GP package development becomes more complex, consider including these
optional parameters in your sfdx-project.json file.
| Name | Details |
|---|---|
| apexTestAccess |
Required? No Default if Not Specified: None Assign permission sets and permission set licenses to the user in context when your Apex tests run at package version creation. |
| branch |
Required? No Default if Not Specified: None If your package has an associated branch, but your package dependency is associated with a different branch, use this format.If your package has an associated branch, but your package dependency doesn’t have an associated branch, use this format. |
| dependencies |
Required? No Default if Not Specified: None Specify the dependencies on other packages.To specify dependencies for managed packages within the same Dev Hub,
use either the package version alias or a combination of the package name and the version
number.
To specify dependencies for managed packages outside of the Dev Hub use:
To denote dependencies with package IDs instead of package aliases,
use:
If the package has more than one dependency, provide a comma-separated list of
packages in the order of installation. For example, if a package depends on the package
Expense Manager - Util, which in turn depends on the package External Apex Library, the
package dependencies are:
|
| postInstallScript |
Required? No Default if Not Specified: None An Apex script that runs automatically in the subscriber org after the managed package is installed or upgraded. |
| postInstallURL |
Required? No Default if Not Specified: None A URL to post-install instructions for subscribers. |
| releaseNotesUrl |
Required? No Default if Not Specified: None A URL to release notes. |
| unpackagedMetadata |
Required? No Default if Not Specified: None See Specify Unpackaged Metadata or Apex Access for Package Version Creation Tests for Second-Generation Managed Packages. |
| uninstallScript |
Required? No Default if Not Specified: None An Apex script to run automatically in the subscriber org before the managed package is uninstalled. |