Skip to content

Commit 708324f

Browse files
authored
Java SDK Release v1.11.0 (temporalio#290)
1 parent c14c387 commit 708324f

File tree

53 files changed

+63
-70
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+63
-70
lines changed

build.gradle

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ dependencies {
2828
implementation(platform("io.micrometer:micrometer-bom:1.8.5"))
2929
implementation(platform("org.junit:junit-bom:5.8.2"))
3030

31-
implementation group: 'io.temporal', name: 'temporal-sdk', version: '1.10.0'
32-
implementation group: 'io.temporal', name: 'temporal-opentracing', version: '1.10.0'
31+
implementation group: 'io.temporal', name: 'temporal-sdk', version: '1.11.0'
32+
implementation group: 'io.temporal', name: 'temporal-opentracing', version: '1.11.0'
3333

3434
implementation "com.fasterxml.jackson.core:jackson-databind"
3535
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.11'
@@ -54,20 +54,12 @@ dependencies {
5454
implementation 'io.opentelemetry:opentelemetry-opentracing-shim:1.13.0-alpha'
5555
implementation 'io.opentelemetry:opentelemetry-semconv:1.13.0-alpha'
5656

57+
// we don't update it to 2.1.0 because 2.1.0 requires Java 11
5758
implementation 'com.codingrodent:jackson-json-crypto:1.1.0'
5859

59-
testImplementation("io.temporal:temporal-testing:1.10.0")
60-
testImplementation ("io.temporal:temporal-testing") {
61-
capabilities {
62-
requireCapability("io.temporal:temporal-testing-junit4")
63-
}
64-
}
65-
testImplementation ("io.temporal:temporal-testing") {
66-
capabilities {
67-
requireCapability("io.temporal:temporal-testing-junit5")
68-
}
69-
}
60+
testImplementation("io.temporal:temporal-testing:1.11.0")
7061

62+
testImplementation "junit:junit:4.13.2"
7163
testImplementation group: 'org.mockito', name: 'mockito-core', version: '4.5.1'
7264
testImplementation group: 'org.powermock', name: 'powermock-api-mockito2', version: '2.0.9'
7365

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/main/java/io/temporal/samples/asyncchild/Starter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
public class Starter {
3434

3535
public static final String TASK_QUEUE = "asyncChildTaskQueue";
36-
private static final WorkflowServiceStubs service = WorkflowServiceStubs.newInstance();
36+
private static final WorkflowServiceStubs service = WorkflowServiceStubs.newLocalServiceStubs();
3737
private static final WorkflowClient client = WorkflowClient.newInstance(service);
3838
private static final WorkerFactory factory = WorkerFactory.newInstance(client);
3939

src/main/java/io/temporal/samples/bookingsaga/TripBookingSaga.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class TripBookingSaga {
3333
@SuppressWarnings("CatchAndPrintStackTrace")
3434
public static void main(String[] args) {
3535
// gRPC stubs wrapper that talks to the local docker instance of temporal service.
36-
WorkflowServiceStubs service = WorkflowServiceStubs.newInstance();
36+
WorkflowServiceStubs service = WorkflowServiceStubs.newLocalServiceStubs();
3737
// client that can be used to start and signal workflows
3838
WorkflowClient client = WorkflowClient.newInstance(service);
3939

src/main/java/io/temporal/samples/common/QueryWorkflowExecution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static void main(String[] args) {
4646
String runId = args.length == 3 ? args[2] : "";
4747

4848
// gRPC stubs wrapper that talks to the local docker instance of temporal service.
49-
WorkflowServiceStubs service = WorkflowServiceStubs.newInstance();
49+
WorkflowServiceStubs service = WorkflowServiceStubs.newLocalServiceStubs();
5050

5151
WorkflowClient client = WorkflowClient.newInstance(service);
5252

src/main/java/io/temporal/samples/dsl/Starter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
public class Starter {
3939

40-
public static final WorkflowServiceStubs service = WorkflowServiceStubs.newInstance();
40+
public static final WorkflowServiceStubs service = WorkflowServiceStubs.newLocalServiceStubs();
4141
public static final WorkflowClient client = WorkflowClient.newInstance(service);
4242
public static final WorkerFactory factory = WorkerFactory.newInstance(client);
4343

src/main/java/io/temporal/samples/dsl/Worker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import io.temporal.worker.WorkerFactory;
2525

2626
public class Worker {
27-
private static final WorkflowServiceStubs service = WorkflowServiceStubs.newInstance();
27+
private static final WorkflowServiceStubs service = WorkflowServiceStubs.newLocalServiceStubs();
2828
private static final WorkflowClient client = WorkflowClient.newInstance(service);
2929
private static final WorkerFactory factory = WorkerFactory.newInstance(client);
3030
public static final String DEFAULT_TASK_QUEUE_NAME = "dsltaskqueue";

src/main/java/io/temporal/samples/encryptedpayloads/EncryptedPayloadsActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public String composeGreeting(String greeting, String name) {
8585

8686
public static void main(String[] args) {
8787
// gRPC stubs wrapper that talks to the local docker instance of temporal service.
88-
WorkflowServiceStubs service = WorkflowServiceStubs.newInstance();
88+
WorkflowServiceStubs service = WorkflowServiceStubs.newLocalServiceStubs();
8989
// client that can be used to start and signal workflows
9090
WorkflowClient client =
9191
WorkflowClient.newInstance(

src/main/java/io/temporal/samples/fileprocessing/FileProcessingStarter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class FileProcessingStarter {
3131

3232
public static void main(String[] args) throws Exception {
3333
// gRPC stubs wrapper that talks to the local docker instance of temporal service.
34-
WorkflowServiceStubs service = WorkflowServiceStubs.newInstance();
34+
WorkflowServiceStubs service = WorkflowServiceStubs.newLocalServiceStubs();
3535
// client that can be used to start and signal workflows
3636
WorkflowClient client = WorkflowClient.newInstance(service);
3737
FileProcessingWorkflow workflow =

src/main/java/io/temporal/samples/fileprocessing/FileProcessingWorker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static void main(String[] args) {
4141
String hostSpecifiTaskQueue = ManagementFactory.getRuntimeMXBean().getName();
4242

4343
// gRPC stubs wrapper that talks to the local docker instance of temporal service.
44-
WorkflowServiceStubs service = WorkflowServiceStubs.newInstance();
44+
WorkflowServiceStubs service = WorkflowServiceStubs.newLocalServiceStubs();
4545
// client that can be used to start and signal workflows
4646
WorkflowClient client = WorkflowClient.newInstance(service);
4747

0 commit comments

Comments
 (0)