Dependencies
To add plugins to a project put them in the [dependencies]
section of the site settings and they will be resolved from the plugin registry:
[]
= "~4"
Plugin names must be quoted.
All dependencies must specify a name and version range which can be an exact version (1.0.0
) or a request range which allows for dependencies to be updated within the matching range. Versions follow the semver specification.
Local Dependencies
Plugins can also be referenced by file system path
which is not portable but is useful for debugging or during the development phase when creating a plugin:
[]
= { = "../../plugins/std/core", = "~4" }
Archive Dependencies
If you have packaged a plugin using upm pack
it is also possible to load the plugin from the archive:
[]
= "*"
= "../../plugins/std/core/package.tar.xz"
Git Dependencies
Plugin dependencies can also be resolved using a git URL:
[]
= "*"
= "https://github.com/organization/repo"
To use a sub-folder within the repository a prefix
can be used:
[]
= "*"
= "https://github.com/uwe-app/plugins"
= "std/core"