Developing cadence-java-client
May 1, 2026 ยท View on GitHub
This doc is intended for contributors to cadence-java-client (hopefully that's you!)
๐ New to contributing to Cadence? Check out our Contributing Guide for an overview of the contribution process across all Cadence repositories. This document contains cadence-java-client specific setup and development instructions.
Join our community on the CNCF Slack workspace at cloud-native.slack.com in the #cadence-users channel to reach out and discuss issues with the team.
Development Environment
- Java 11 (currently, we use Java 11 to compile Java 8 code).
- Gradle build tool 6.x
- Docker
:warning: Note 1: It's currently compatible with Java 8 compiler but no guarantee in the future.
IntelliJ IDE integration (Optional)
- Make sure you set the gradle path with the right version (currently 6.x)

- Then all the below
gradlewcommand can be replaced with the Gradle plugin operation
Licence headers
This project is Open Source Software, and requires a header at the beginning of all source files. To verify that all files contain the header execute:
./gradlew license
To generate licence headers execute
./gradlew licenseFormat
Commit Messages
Overcommit adds some requirements to your commit messages. At Uber, we follow the Chris Beams guide to writing git commit messages. Read it, follow it, learn it, love it.
Build & Publish & Test locally
Build with:
./gradlew build
To test locally, you can publish to MavenLocal
-
Change
build.gradle: Comment out the first section inpublications( line 160 to line 191 in this commit) -
Change the version to add a
localsuffix. E.g.
version = '3.3.0'
to
version = '3.3.0-local'
Then run the command
./gradlew publishToMavenLocal
Now you have the local cadence-java-client in your machine using veriosn 3.3.0-local
- To test with Cadence Java Samples, change
mavenCentral()tomavenLocal()and also change the version with your suffix.
Then ./gradlew build and refer to the sample repo for how to run the code(it needs to run with a Cadence server).
:warning: If you run into problem with version.properties creation task, you can comment the task out. It's okay for local testing.
The property file is being used by Version classto report the library version for logging/metrics.
Unit & Integration Test
Then run all the tests with:
./gradlew test
The test by default will run with TestEnvironment without Cadence service. If you want to run with Cadence serivce:
USE_DOCKER_SERVICE=true ./gradlew test
And sometimes it's important to test the non-sticky mode
STICKY_OFF=true USE_DOCKER_SERVICE=true ./gradlew test
Also, if there is any Github Actions test failure that you cannot reproduce locally, follow github action docker-compose instructions to run the tests.