PackageManager.loadSCMPackage

For a given SCM repository, returns the corresponding package.

An SCM repository is provided as its remote URL, the repository is cloned and in the dependency specified commit is checked out.

If the target directory already exists, just returns the package without cloning.

  1. Package loadSCMPackage(PackageName name, Repository repo)
    class PackageManager
    loadSCMPackage
  2. Package loadSCMPackage(string name, Dependency dependency)
  3. Package loadSCMPackage(string name, Repository repo)

Parameters

name PackageName

Package name

Return Value

Type: Package

The package loaded from the given SCM repository or null if the package couldn't be loaded.

Meta