Skip to content

Commit 65de3d3

Browse files
committed
feat: Make a bunch of changes to prep for the major release
BREAKING CHANGE: a lot
1 parent 23e3b0c commit 65de3d3

File tree

17 files changed

+56
-51
lines changed

17 files changed

+56
-51
lines changed

.bumpversion.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ message = Update version numbers from {current_version} -> {new_version}
99

1010
[bumpversion:file:assistant/README.md]
1111

12+
[bumpversion:file:compare-comply/README.md]
13+
1214
[bumpversion:file:discovery/README.md]
1315

1416
[bumpversion:file:language-translator/README.md]

.releaserc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"branch": "bintray-deploy",
2+
"branch": "master",
33
"tagFormat": "java-sdk-${version}",
44
"plugins": [
55
"@semantic-release/commit-analyzer",

.travis.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ before_install:
2222
sudo perl -pi.bak -e 's/^(security\.provider\.)([0-9]+)/$1.($2+1)/ge' /etc/java-7-openjdk/security/java.security
2323
echo "security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider" | sudo tee -a /etc/java-7-openjdk/security/java.security
2424
fi
25-
#- npm install -g npm@6.x
26-
#- nvm install 'lts/*'
27-
#- sudo apt-get update
28-
#- sudo apt-get install python
25+
- npm install -g npm@6.x
26+
- nvm install 'lts/*'
27+
- sudo apt-get update
28+
- sudo apt-get install python
2929
install:
3030
- if [ "${TRAVIS_TAG}" = "${TRAVIS_BRANCH}" ]; then cd appscan; make asoc-tool; cd
3131
../; fi
32-
#- npm install -g semantic-release@15.13.4
33-
#- npm install @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/git @semantic-release/github @semantic-release/exec -D
34-
#- pip install --user bumpversion
32+
- npm install -g semantic-release@15.13.4
33+
- npm install @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/git @semantic-release/github @semantic-release/exec -D
34+
- pip install --user bumpversion
3535
before_script:
3636
- if [ "${TRAVIS_TAG}" = "${TRAVIS_BRANCH}" ]; then chmod a+x ./appscan/ASOC.sh; fi
3737
- env
@@ -54,14 +54,14 @@ deploy:
5454
skip_cleanup: true
5555
script: "./gradlew bintrayUpload"
5656
on:
57-
branch: bintray-deploy
57+
tags: true
58+
jdk: openjdk7
59+
- provider: script
60+
skip_cleanup: true
61+
script: "semantic-release"
62+
on:
63+
branch: master
5864
jdk: openjdk7
59-
#- provider: script
60-
# skip_cleanup: true
61-
# script: "semantic-release"
62-
# on:
63-
# branch: bintray-deploy
64-
# jdk: openjdk7
6565
- provider: script
6666
script: ".utility/push-javadoc-to-gh-pages.sh"
6767
skip_cleanup: true

.utility/bintray-release.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ bintray {
1313
user = System.getenv('BINTRAY_USER')
1414
key = System.getenv('BINTRAY_APIKEY')
1515
publications = ['maven']
16-
dryRun = true
1716
publish = true
1817
pkg {
1918
repo = 'ibm-cloud-sdk-repo'

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ All the services:
6666
<dependency>
6767
<groupId>com.ibm.watson</groupId>
6868
<artifactId>ibm-watson</artifactId>
69-
<version>7.0.0</version>
69+
<version>6.14.0</version>
7070
</dependency>
7171
```
7272

@@ -76,7 +76,7 @@ Only Discovery:
7676
<dependency>
7777
<groupId>com.ibm.watson</groupId>
7878
<artifactId>discovery</artifactId>
79-
<version>7.0.0</version>
79+
<version>6.14.0</version>
8080
</dependency>
8181
```
8282

@@ -85,13 +85,13 @@ Only Discovery:
8585
All the services:
8686

8787
```gradle
88-
'com.ibm.watson:ibm-watson:7.0.0'
88+
'com.ibm.watson:ibm-watson:6.14.0'
8989
```
9090

9191
Only Assistant:
9292

9393
```gradle
94-
'com.ibm.watson:assistant:7.0.0'
94+
'com.ibm.watson:assistant:6.14.0'
9595
```
9696

9797
##### JAR

assistant/README.md

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

1414
##### Gradle
1515
```gradle
16-
'com.ibm.watson.developer_cloud:assistant:6.14.0'
16+
'com.ibm.watson:assistant:6.14.0'
1717
```
1818

1919
## Usage
@@ -22,15 +22,16 @@ Use the [Assistant][assistant] service to identify intents, entities, and conduc
2222
### Using Assistant v1
2323
```java
2424
// make sure to use the Assistant v1 import!
25-
import com.ibm.watson.developer_cloud.assistant.v1.Assistant;
25+
import com.ibm.watson.assistant.v1.Assistant;
2626

2727
Assistant service = new Assistant("2018-02-16");
2828
IamOptions options = new IamOptions.Builder()
2929
.apiKey("<iam_api_key>")
3030
.build();
3131
service.setIamCredentials(options);
3232

33-
InputData input = new InputData.Builder("Hi").build();
33+
MessageInput input = new MessageInput();
34+
input.setText("Hi");
3435
MessageOptions options = new MessageOptions.Builder(workspaceId)
3536
.input(input)
3637
.build();
@@ -41,24 +42,27 @@ System.out.println(response);
4142
Maintaining context across messages:
4243
```java
4344
// make sure to use the Assistant v1 import!
44-
import com.ibm.watson.developer_cloud.assistant.v1.Assistant;
45+
import com.ibm.watson.assistant.v1.Assistant;
4546

4647
Context context = null;
48+
MessageInput input = new MessageInput();
4749

4850
// first message
51+
input.setText("First message");
4952
MessageOptions newMessageOptions = new MessageOptions.Builder()
5053
.workspaceId("<workspace-id>")
51-
.input(new InputData.Builder("First message").build())
54+
.input(input)
5255
.context(context)
5356
.build();
5457

5558
MessageResponse response = service.message(newMessageOptions).execute().getResult();
5659
context = response.getContext();
5760

5861
// second message
62+
input.setText("Second message");
5963
newMessageOptions = new MessageOptions.Builder()
6064
.workspaceId("<workspace-id>")
61-
.input(new InputData.Builder("Second message").build())
65+
.input(input)
6266
.context(context) // using context from the first message
6367
.build();
6468

@@ -72,7 +76,7 @@ System.out.println(response);
7276
### Using Assistant v2
7377
```java
7478
// make sure to use the Assistant v2 import!
75-
import com.ibm.watson.developer_cloud.assistant.v2.Assistant;
79+
import com.ibm.watson.assistant.v2.Assistant;
7680

7781
Assistant service = new Assistant("2018-09-20");
7882
IamOptions options = new IamOptions.Builder()
@@ -96,7 +100,7 @@ System.out.println(messageResponse);
96100
Maintaining context across messages:
97101
```java
98102
// make sure to use the Assistant v2 import!
99-
import com.ibm.watson.developer_cloud.assistant.v2.Assistant;
103+
import com.ibm.watson.assistant.v2.Assistant;
100104

101105
MessageContext context = new MessageContext();
102106

compare-comply/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
##### Maven
66
```xml
77
<dependency>
8-
<groupId>com.ibm.watson.developer_cloud</groupId>
8+
<groupId>com.ibm.watson</groupId>
99
<artifactId>compare-comply</artifactId>
10-
<version>6.11.0</version>
10+
<version>6.14.0</version>
1111
</dependency>
1212
```
1313

1414
##### Gradle
1515
```gradle
16-
'com.ibm.watson.developer_cloud:compare-comply:6.11.0'
16+
'com.ibm.watson.developer_cloud:compare-comply:6.14.0'
1717
```
1818

1919
## Usage

discovery/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
##### Maven
66
```xml
77
<dependency>
8-
<groupId>com.ibm.watson.developer_cloud</groupId>
8+
<groupId>com.ibm.watson</groupId>
99
<artifactId>discovery</artifactId>
1010
<version>6.14.0</version>
1111
</dependency>
1212
```
1313

1414
##### Gradle
1515
```gradle
16-
'com.ibm.watson.developer_cloud:discovery:6.14.0'
16+
'com.ibm.watson:discovery:6.14.0'
1717
```
1818

1919
## Usage

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version=6.14.2
1+
version=6.14.0
22
group=com.ibm.watson
33

language-translator/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
##### Maven
66
```xml
77
<dependency>
8-
<groupId>com.ibm.watson.developer_cloud</groupId>
8+
<groupId>com.ibm.watson</groupId>
99
<artifactId>language-translator</artifactId>
1010
<version>6.14.0</version>
1111
</dependency>
1212
```
1313

1414
##### Gradle
1515
```gradle
16-
'com.ibm.watson.developer_cloud:language-translator:6.14.0'
16+
'com.ibm.watson:language-translator:6.14.0'
1717
```
1818

1919
## Usage

0 commit comments

Comments
 (0)