Skip to content

Commit 546233f

Browse files
Merge pull request #829 from watson-developer-cloud/develop
4.1.0
2 parents f3915d9 + a675d71 commit 546233f

File tree

219 files changed

+9632
-2651
lines changed

Some content is hidden

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

219 files changed

+9632
-2651
lines changed

.bumpversion.cfg

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[bumpversion]
2+
current_version = 4.0.0
3+
4+
[bumpversion:file:README.md]
5+
[bumpversion:file:alchemy/README.md]
6+
[bumpversion:file:conversation/README.md]
7+
[bumpversion:file:discovery/README.md]
8+
[bumpversion:file:document-conversion/README.md]
9+
[bumpversion:file:language-translator/README.md]
10+
[bumpversion:file:natural-language-classifier/README.md]
11+
[bumpversion:file:natural-language-understanding/README.md]
12+
[bumpversion:file:personality-insights/README.md]
13+
[bumpversion:file:retrieve-and-rank/README.md]
14+
[bumpversion:file:speech-to-text/README.md]
15+
[bumpversion:file:text-to-speech/README.md]
16+
[bumpversion:file:tone-analyzer/README.md]
17+
[bumpversion:file:tradeoff-analytics/README.md]
18+
[bumpversion:file:visual-recognition/README.md]
19+
search = {current_version}
20+
replace = {new_version}

.config.properties.enc

-3.25 KB
Binary file not shown.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ before_install:
3030
- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml
3131

3232
script:
33-
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_3faf32fc672a_key -iv $encrypted_3faf32fc672a_iv -in .config.properties.enc -out core/src/test/resources/.config.properties -d || true'
33+
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_b248e84a4806_key -iv $encrypted_b248e84a4806_iv -in config.properties.enc -out core/src/test/resources/config.properties -d || true'
3434
- ./gradlew install -x check
3535
- ./gradlew checkstyleMain
3636
- ./gradlew checkstyleTest

.utility/push-javadoc-to-gh-pages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" ]; then
44

55
git config --global user.email "[email protected]"
66
git config --global user.name "Watson Github Bot"
7-
git clone --quiet --branch=gh-pages https://${GITHUB_TOKEN_DOCS}@github.com/watson-developer-cloud/java-sdk gh-pages > /dev/null
7+
git clone --quiet --branch=gh-pages https://${GITHUB_TOKEN_DOCS}@github.com/watson-developer-cloud/java-sdk.git gh-pages > /dev/null
88

99
pushd gh-pages
1010
# on tagged builds, $TRAVIS_BRANCH is the tag (e.g. v1.2.3), otherwise it's the branch name (e.g. master)

RELEASE.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,26 @@ If you are not familiar with Sonatype and/or the maven release process please re
1717

1818
### Release steps
1919

20-
1. Update `README.md` to include the new version number
20+
1. Update all READMEs to include the new version number
21+
22+
This can be done using [bumpversion]. If necessary, it can be installed with the following command:
23+
24+
```bash
25+
pip install bumpversion
26+
```
27+
28+
To then update all version numbers, simply run:
29+
30+
```bash
31+
bumpversion major|minor|patch
32+
```
33+
2134
1. Perform a release deployment to OSSRH (Staging) with:
2235

23-
`gradle release`
36+
```bash
37+
`gradle release`
38+
```
39+
40+
You will have to answer prompts for versions and tags. That will tag and commit a new version into your repository automatically.
2441

25-
You will have to answer prompts for versions and tags. That will tag and commit a new version into your repository automatically.
42+
[bumpversion]: https://pypi.python.org/pypi/bumpversion

alchemy/src/test/java/com/ibm/watson/developer_cloud/alchemy/v1/AlchemyVisionIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public void testGetImageFromURL() {
8484
/**
8585
* Test get image with HTML.
8686
*/
87+
@Ignore
8788
@Test
8889
public void testGetImageWithHTML() {
8990
final ImageLink image = service.getImageLink(htmlExample).execute();

config.properties.enc

3.3 KB
Binary file not shown.

conversation/src/main/java/com/ibm/watson/developer_cloud/conversation/v1/Conversation.java

Lines changed: 700 additions & 639 deletions
Large diffs are not rendered by default.

conversation/src/main/java/com/ibm/watson/developer_cloud/conversation/v1/model/Context.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,31 @@
1919
import com.ibm.watson.developer_cloud.util.GsonSerializationHelper;
2020

2121
/**
22-
* Context information for the message. Include the context from the previous response to maintain state for the
22+
* Context information for the message. Include the context from the previous response to maintain state for the
2323
* conversation.
24-
*/
24+
*/
2525
public class Context extends DynamicModel {
26-
private Type conversationIdType = new TypeToken<String>() { } .getType();
27-
private Type systemType = new TypeToken<SystemResponse>() { } .getType();
26+
private Type conversationIdType = new TypeToken<String>() {
27+
}.getType();
28+
private Type systemType = new TypeToken<SystemResponse>() {
29+
}.getType();
2830

2931
/**
3032
* Gets the conversationId.
3133
*
3234
* @return the conversationId
3335
*/
3436
public String getConversationId() {
35-
return GsonSerializationHelper.serializeDynamicModelProperty(this.get("conversationId"), conversationIdType);
37+
return GsonSerializationHelper.serializeDynamicModelProperty(this.get("conversation_id"), conversationIdType);
3638
}
39+
3740
/**
3841
* Gets the system.
3942
*
4043
* @return the system
4144
*/
4245
public SystemResponse getSystem() {
43-
return GsonSerializationHelper.serializeDynamicModelProperty(this.get("system"), systemType);
46+
return GsonSerializationHelper.serializeDynamicModelProperty(this.get("system"), systemType);
4447
}
4548

4649
/**
@@ -49,7 +52,7 @@ public SystemResponse getSystem() {
4952
* @param conversationId the new conversationId
5053
*/
5154
public void setConversationId(final String conversationId) {
52-
this.put("conversationId", conversationId);
55+
this.put("conversation_id", conversationId);
5356
}
5457

5558
/**
@@ -61,4 +64,3 @@ public void setSystem(final SystemResponse system) {
6164
this.put("system", system);
6265
}
6366
}
64-

0 commit comments

Comments
 (0)