Verify Compilation:
./gradlew compileJavaBuild & test:
./gradlew buildTo ensure all build components work correctly after making changes:
# Build without tests
./gradlew build -x test
# Run unit tests
./gradlew test
# Run SpotBugs
./gradlew spotbugsMain spotbugsTestWhen updating the protobuf definitions in internal/durabletask-protobuf/protos/orchestrator_service.proto:
- Manually copy the updated protobuf file from dapr/durabletask-protobuf
- Update the commit hash in
internal/durabletask-protobuf/PROTO_SOURCE_COMMIT_HASHto reflect the new commit - Regenerate the Java classes from the protobuf definitions:
./gradlew generateProto./gradlew publishToMavenLocalor simply ./gradlew build publishToMavenLocal -PskipSigning
Check if it was released locally with:
ls ~/.m2/repository/io/dapr/durabletask-client/ Then update the durabletask-client in the java-sdk pom.xml file to the newest version you released locally.