Skip to content

Build and publish pipeline for Maven packages #27

Closed

Description

@cgillum

Work needs to be done to publish packages to the maven central repository: https://mvnrepository.com/. This includes both the annotations package (currently named com.microsoft.durabletask.azurefunctions) and the core SDK package (com.microsoft.durabletask)

Activity

  1. shreyas-gopalakrishna commented on Oct 5, 2022

    @shreyas-gopalakrishna
    Member

    Documenting the steps to follow to release the durabletask client and durabletask annotations packages.

    Build the project and install to local maven repository

    Update the package versions in the build.gradle files for both the packages
    - durabletask-java client
    - durabletask-java annotations

    Configure local system to use JDK 8. Verify using the below command before proceeding
    - java -version

    Build and install the durable task java client to local maven repository using IntelliJ or the below commands
    - gradle client:build
    - gradle client:publishToMavenLocal

    Build and install the durable task java annotations to local maven repository using IntelliJ or the below commands
    - gradle azurefunctions:build
    - gradle azurefunctions:publishToMavenLocal

    The updated jars can be located at the local maven repository in the below path.
    - C:\Users\<user>\.m2\repository\com\microsoft\durabletask-client\<version>
    - C:\Users\<user>\.m2\repository\com\microsoft\durabletask-azure-functions<version>

    Publish packages to maven

    The Partner Release Pipeline will be used to publish packages into sonatype and maven.

    Upload the files from your local maven repository to the Azure drops container
    - Create a new folder for your package (if a new package) and a version sub folder.
    - Container locations /azure-functions/java/durabletask-azure-functions/<version> and /azure-functions/java/durabletask-client/<version>
    - Upload the files from your local maven repository to the specific container. Generally, this included 4 files, a pom file, javadoc jar, sources jar and the actual package jar.

    Run the Java Partner Release Pipeline to publish to sonatype and maven.
    1. Click Run pipeline
    2. Update the Container relative blob path to point to the respective package in the drops container. Example: azure-functions/java/durabletask-client/1.0.0-beta.1
    3. Hit Run
    4. Once the pipeline completes, the jars are published to maven. If the jar is a Snapshot jar, it is only published to sonatype.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions