Skip to content

Commit 0d513ba

Browse files
Merge pull request #913 from watson-developer-cloud/develop
Release v5.2.0
2 parents 53f523e + 7d3be70 commit 0d513ba

File tree

77 files changed

+1329
-1902
lines changed

Some content is hidden

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

77 files changed

+1329
-1902
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ All the services:
7474
Only Assistant:
7575

7676
```gradle
77-
'com.ibm.watson.developer_cloud:assistant:5.0.1'
77+
'com.ibm.watson.developer_cloud:assistant:5.1.1'
7878
```
7979

8080
##### Development Snapshots
@@ -97,7 +97,7 @@ And then reference the snapshot version on your app module gradle
9797
Only Speech to Text:
9898

9999
```gradle
100-
'com.ibm.watson.developer_cloud:speech-to-text:5.1.1-SNAPSHOT'
100+
'com.ibm.watson.developer_cloud:speech-to-text:5.1.2-SNAPSHOT'
101101
```
102102

103103
##### JAR

assistant/README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
##### Maven
66
```xml
77
<dependency>
8-
<groupId>com.ibm.watson.developer_cloud</groupId>
9-
<artifactId>assistant</artifactId>
10-
<version>5.0.0</version>
8+
<groupId>com.ibm.watson.developer_cloud</groupId>
9+
<artifactId>assistant</artifactId>
10+
<version>5.1.1</version>
1111
</dependency>
1212
```
1313

@@ -25,7 +25,9 @@ Assistant service = new Assistant("2018-02-16");
2525
service.setUsernameAndPassword("<username>", "<password>");
2626

2727
InputData input = new InputData.Builder("Hi").build();
28-
MessageOptions options = new MessageOptions.Builder(workspaceId).input(input).build();
28+
MessageOptions options = new MessageOptions.Builder(workspaceId)
29+
.input(input)
30+
.build();
2931
MessageResponse response = service.message(options).execute();
3032
System.out.println(response);
3133
```
@@ -37,19 +39,19 @@ Context context = null;
3739

3840
// first message
3941
MessageOptions newMessageOptions = new MessageOptions.Builder()
40-
.workspaceId("<workspace-id>")
41-
.input(new InputData.Builder("First message").build())
42-
.context(context)
43-
.build();
42+
.workspaceId("<workspace-id>")
43+
.input(new InputData.Builder("First message").build())
44+
.context(context)
45+
.build();
4446

4547
MessageResponse response = service.message(newMessageOptions).execute();
4648

4749
// second message
4850
newMessageOptions = new MessageOptions.Builder()
49-
.workspaceId("<workspace-id>")
50-
.input(new InputData.Builder("Second message").build())
51-
.context(response.getContext()) // output context from the first message
52-
.build();
51+
.workspaceId("<workspace-id>")
52+
.input(new InputData.Builder("Second message").build())
53+
.context(response.getContext()) // output context from the first message
54+
.build();
5355

5456
response = service.message(newMessageOptions).execute();
5557

config.properties.enc

80 Bytes
Binary file not shown.

conversation/README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
##### Maven
66
```xml
77
<dependency>
8-
<groupId>com.ibm.watson.developer_cloud</groupId>
9-
<artifactId>conversation</artifactId>
10-
<version>5.1.1</version>
8+
<groupId>com.ibm.watson.developer_cloud</groupId>
9+
<artifactId>conversation</artifactId>
10+
<version>5.1.1</version>
1111
</dependency>
1212
```
1313

@@ -25,7 +25,9 @@ Conversation service = new Conversation("2018-02-16");
2525
service.setUsernameAndPassword("<username>", "<password>");
2626

2727
InputData input = new InputData.Builder("Hi").build();
28-
MessageOptions options = new MessageOptions.Builder(workspaceId).input(input).build();
28+
MessageOptions options = new MessageOptions.Builder(workspaceId)
29+
.input(input)
30+
.build();
2931
MessageResponse response = service.message(options).execute();
3032
System.out.println(response);
3133
```
@@ -37,19 +39,19 @@ Context context = null;
3739

3840
// first message
3941
MessageOptions newMessageOptions = new MessageOptions.Builder()
40-
.workspaceId("<workspace-id>")
41-
.input(new InputData.Builder("First message").build())
42-
.context(context)
43-
.build();
42+
.workspaceId("<workspace-id>")
43+
.input(new InputData.Builder("First message").build())
44+
.context(context)
45+
.build();
4446

4547
MessageResponse response = service.message(newMessageOptions).execute();
4648

4749
// second message
4850
newMessageOptions = new MessageOptions.Builder()
49-
.workspaceId("<workspace-id>")
50-
.input(new InputData.Builder("Second message").build())
51-
.context(response.getContext()) // output context from the first message
52-
.build();
51+
.workspaceId("<workspace-id>")
52+
.input(new InputData.Builder("Second message").build())
53+
.context(response.getContext()) // output context from the first message
54+
.build();
5355

5456
response = service.message(newMessageOptions).execute();
5557

core/src/test/java/com/ibm/watson/developer_cloud/util/CredentialUtilsTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import org.junit.Assert;
2323
import org.junit.Before;
24+
import org.junit.Ignore;
2425
import org.junit.Test;
2526

2627
import com.ibm.watson.developer_cloud.WatsonServiceTest;
@@ -129,6 +130,7 @@ public void testGetUserCredentialsWithPlan() {
129130
* it always fails there.
130131
*/
131132
@Test
133+
@Ignore
132134
public void testGetAPIUrlFromJDNI() {
133135
assertEquals(CredentialUtils.getAPIUrlTest(SERVICE_NAME), PERSONALITY_INSIGHTS_URL);
134136
}

examples/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ checkstyle {
3333
}
3434

3535
dependencies {
36-
compile group: 'com.ibm.watson.developer_cloud', name: 'java-sdk', version: '3.7.2'
36+
compile group: 'com.ibm.watson.developer_cloud', name: 'java-sdk', version: '5.1.1'
3737
}

examples/conversation_tone_analyzer_integration/README.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

examples/conversation_tone_analyzer_integration/build.gradle

Lines changed: 0 additions & 28 deletions
This file was deleted.

examples/conversation_tone_analyzer_integration/src/main/java/com/ibm/watson/developer_cloud/conversation_tone_analyzer_integration/v1/ToneConversationIntegrationV1.java

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)