Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019
Azure Artifacts enables developers to manage all their dependencies in one place by storing multiple package types in a single feed. This article walks you through connecting to an Azure Artifacts feed and publishing packages using Gradle.
Prerequisites
Product | Requirements |
---|---|
Azure DevOps | - An Azure DevOps organization. - An Azure DevOps project. - Download and install Gradle. |
Create a feed
Azure Artifacts recommends using one feed for consuming packages and a separate one for publishing your internal packages. If you already have a feed, you can skip this step. Otherwise, follow these steps to create a new feed:
Sign in to your Azure DevOps organization, and then navigate to your project.
Select Artifacts, then select Create Feed.
Provide a Name for your feed and set its Visibility, then select a Scope for your feed. If you'd like to include packages from public registries, check the Upstream sources checkbox.
Select Create when you're done.
Publish packages
If you haven't authenticated with your feed yet, follow the steps in Project setup to set up your config files and authenticate with your feed.
In your project directory, run the following command to publish your package:
gradle publish
Once published, navigate to your feed. You should see your packages listed, as shown in the example below: