Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 2.42 KB

File metadata and controls

57 lines (36 loc) · 2.42 KB
title Publish artifacts with Gradle
description Learn how to connect to a feed and publish your packages with Gradle.
ms.service azure-devops-artifacts
ms.topic how-to
ms.date 05/12/2025
ms.author rabououn
author ramiMSFT
monikerRange <=azure-devops
recommendations true

Publish packages - Gradle

[!INCLUDE version-lt-eq-azure-devops]

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:

  1. Sign in to your Azure DevOps organization, and then navigate to your project.

  2. Select Artifacts, then select Create Feed.

  3. 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.

  4. Select Create when you're done.

Publish packages

  1. 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.

  2. In your project directory, run the following command to publish your package:

    gradle publish
    
  3. Once published, navigate to your feed. You should see your packages listed, as shown in the example below:

    :::image type="content" source="media/publish-package-gradle.png" alt-text="A screenshot displaying a package successfully published to the feed.":::

Related content