How to use the Temporal Java SDK
The Temporal Java SDK provides a framework for Temporal Application development in Java. The SDK contains the following tools:
- A Temporal Client to communicate with a Temporal Cluster
- APIs to use within your Workflows
- APIs to create and manage Worker Entities and Worker Processes
Get the SDK
Add the Temporal Java SDK to your project as a dependency:
<dependency>
<groupId>io.temporal</groupId>
<artifactId>temporal-sdk</artifactId>
<version>1.11.0</version>
</dependency>
implementation 'io.temporal:temporal-sdk:1.11.0'
Other:
Additional scripts for each SDK version are available here: https://search.maven.org/artifact/io.temporal/temporal-sdk. Select an SDK version to see available scripts.
Are there executable code samples?
You can find a complete list of executable code samples in the samples library, which includes Temporal Java SDK code samples from the temporalio/samples-java repo. Additionally, several of the Java SDK Tutorials are backed by a fully executable template application.
Where is the Java SDK technical reference?
The Java SDK API reference is published to javadoc.io.
Where can I find video demos?