microsoft / durabletask-java

Java SDK for Durable Functions and the Durable Task Framework
MIT License
13 stars 7 forks source link

Build and publish pipeline for Maven packages #27

Closed cgillum closed 1 year ago

cgillum commented 2 years ago

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)

shreyas-gopalakrishna commented 2 years ago

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

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

Build and install the durable task java client to local maven repository using IntelliJ or the below commands

Build and install the durable task java annotations to local maven repository using IntelliJ or the below commands

The updated jars can be located at the local maven repository in the below path.

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

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.