Skip to content

Commit 17d536e

Browse files
author
Dmitry Spikhalskiy
authored
Upgrade to use Temporal SDK v1.7.0 (temporalio#209)
1 parent 42d7565 commit 17d536e

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

build.gradle

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ repositories {
2727
}
2828

2929
dependencies {
30-
implementation group: 'io.temporal', name: 'temporal-sdk', version: '1.6.0'
30+
implementation(platform("com.fasterxml.jackson:jackson-bom:2.13.1"))
31+
32+
implementation group: 'io.temporal', name: 'temporal-sdk', version: '1.7.0'
33+
34+
implementation 'com.fasterxml.jackson.core:jackson-databind'
3135
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.10'
3236
implementation group: 'commons-configuration', name: 'commons-configuration', version: '1.10'
3337
implementation group: 'io.cloudevents', name: 'cloudevents-core', version: '2.3.0'
@@ -42,7 +46,7 @@ dependencies {
4246
implementation group: 'net.thisptr', name: 'jackson-jq', version: '1.0.0-preview.20210928'
4347
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.12.5'
4448

45-
testImplementation("io.temporal:temporal-testing:1.6.0")
49+
testImplementation("io.temporal:temporal-testing:1.7.0")
4650
testImplementation ("io.temporal:temporal-testing") {
4751
capabilities {
4852
requireCapability("io.temporal:temporal-testing-junit4")
@@ -65,14 +69,6 @@ dependencies {
6569
errorprone("com.google.errorprone:error_prone_core:2.10.0")
6670
}
6771

68-
configurations.all {
69-
resolutionStrategy {
70-
force 'com.fasterxml.jackson.core:jackson-core:2.12.5'
71-
force 'com.fasterxml.jackson.core:jackson-databind:2.12.5'
72-
force 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.12.5'
73-
}
74-
}
75-
7672
compileJava {
7773
dependsOn 'googleJavaFormat'
7874
}

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
rootProject.name = 'temporal-samples'
1+
rootProject.name = 'temporal-java-samples'
22

src/test/java/io/temporal/samples/hello/HelloCancellationScopeTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ public class HelloCancellationScopeTest {
3737
TestWorkflowRule.newBuilder()
3838
.setWorkflowTypes(GreetingWorkflowImpl.class)
3939
.setActivityImplementations(new GreetingActivitiesImpl())
40-
.setTestTimeoutSeconds(200)
4140
.build();
4241

43-
@Test
42+
@Test(timeout = 200_000)
4443
public void testActivityImpl() {
4544
// Get a workflow stub using the same task queue the worker uses.
4645
GreetingWorkflow workflow =

0 commit comments

Comments
 (0)