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.
- Java 11 (currently, we use Java 11 to compile Java 8 code).
- Gradle build tool 6.x
- Docker
- Make sure you set the gradle path with the right version (currently 6.x)
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
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 with:
./gradlew buildTo 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 publishToMavenLocalNow 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).
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.
Then run all the tests with:
./gradlew testThe test by default will run with TestEnvironment without Cadence service. If you want to run with Cadence serivce:
USE_DOCKER_SERVICE=true ./gradlew testAnd sometimes it's important to test the non-sticky mode
STICKY_OFF=true USE_DOCKER_SERVICE=true ./gradlew testAlso, if there is any Github Actions test failure that you cannot reproduce locally, follow github action docker-compose instructions to run the tests.

