diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-11 21:09:10 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-11 21:09:10 +0300 |
commit | 559d99e40299e67969023a1afd23d084fbf23ed1 (patch) | |
tree | 0ec7bb391d615937f89251c6d11560dc95180e5e /doc/user/packages/maven_repository | |
parent | 5231344d99fd052e193243041dc180ed26cfe2ac (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/user/packages/maven_repository')
-rw-r--r-- | doc/user/packages/maven_repository/index.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/user/packages/maven_repository/index.md b/doc/user/packages/maven_repository/index.md index c6bf62dfc9a..bae01135170 100644 --- a/doc/user/packages/maven_repository/index.md +++ b/doc/user/packages/maven_repository/index.md @@ -611,6 +611,21 @@ Now navigate to your project's **Packages & Registries** page and view the publi When you publish a package with the same name or version as an existing package, the existing package is overwritten. +#### Do not allow duplicate Maven packages + +> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/296895) in GitLab Free 13.9. + +To prevent users from publishing duplicate Maven packages, you can use the [GraphQl API](../../../api/graphql/reference/index.md#packagesettings) or the UI. + +In the UI: + +1. For your group, go to **Settings > Packages & Registries**. +1. Expand the **Package Registry** section. +1. Turn on the **Reject duplicates** toggle. +1. Optional. To allow some duplicate packages, in the **Exceptions** box, enter a regex pattern that matches the names of packages you want to allow. + +Your changes are automatically saved. + ## Install a package To install a package from the GitLab Package Registry, you must configure |