Skip to content

Commit 36ccb0f

Browse files
authored
Merge pull request #1050 from watson-developer-cloud/v7.0.0
v7.0.0 release 😱 😱 😱
2 parents 7fbfcff + 4d8824a commit 36ccb0f

File tree

946 files changed

+12143
-41550
lines changed

Some content is hidden

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

946 files changed

+12143
-41550
lines changed

.bumpversion.cfg

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
[bumpversion]
22
current_version = 6.14.0
33
commit = True
4-
message = [skip ci] docs: Update version numbers from {current_version} -> {new_version}
4+
message = Update version numbers from {current_version} -> {new_version}
5+
6+
[bumpversion:file:gradle.properties]
57

68
[bumpversion:file:README.md]
79

810
[bumpversion:file:assistant/README.md]
911

10-
[bumpversion:file:conversation/README.md]
12+
[bumpversion:file:compare-comply/README.md]
1113

1214
[bumpversion:file:discovery/README.md]
1315

.github/CONTRIBUTING.md

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
1-
# Questions
2-
3-
If you are having difficulties using the APIs or have a question about the IBM Watson Services,
4-
please ask a question on [dW Answers][dw] or [Stack Overflow][stackoverflow].
5-
61
# Issues
72

83
If you encounter an issue with the Java SDK, you are welcome to submit a [bug report](https://github.com/watson-developer-cloud/java-sdk/issues).
94
Before that, please search for similar issues. It's possible somebody has encountered this issue already.
105

6+
# Building and testing
7+
This project uses [Gradle] as the build tool (> v1.x). Here are some helpful commands:
8+
```sh
9+
cd java-sdk
10+
gradle jar # build jar file (build/libs/watson-developer-cloud-6.14.0.jar)
11+
gradle test # run tests
12+
gradle check # performs quality checks on source files and generates reports
13+
gradle testReport # run tests and generate the aggregated test report (build/reports/allTests)
14+
gradle codeCoverageReport # run tests and generate the code coverage report (build/reports/jacoco)
15+
```
16+
1117
# Pull Requests
1218

1319
If you want to contribute to the repository, here's a quick guide:
1420
1. Fork the repository
15-
1. Create a `.config.properties` similar to [`config.properties`](https://github.com/watson-developer-cloud/java-sdk/blob/master/core/src/test/resources/config.properties).
21+
1. Edit the [`config.properties`](../common/src/test/resources/config.properties) file to add your service credentials to the appropriate fields.
1622
2. develop and test your code changes, gradle: `gradle test`.
1723
* Run `checkstyle`: `gradle checkstyle`. 🏁
1824
* Create minimal diffs - disable on save actions like reformat source code or organize imports. If you feel the source code should be reformatted create a separate PR for this change.
@@ -48,24 +54,6 @@ By making a contribution to this project, I certify that:
4854
maintained indefinitely and may be redistributed consistent with
4955
this project or the open source license(s) involved.
5056

51-
## Emoji Cheatsheet
52-
53-
When creating creating commits or updating the `CHANGELOG`, please **start** the commit message or update with one of the following applicable Emoji. Emoji should not be used at the start of issue or pull request titles.
54-
55-
* :new: `:new:` when adding new functionality
56-
* :bug: `:bug:` when fixing a bug
57-
* :memo: `:memo:` when writing documentation
58-
* :art: `:art:` when improving the format/structure of the code
59-
* :fire: `:fire:` when removing code or files
60-
* :racehorse: `:racehorse:` when improving performance
61-
* :white_check_mark: `:white_check_mark:` when adding tests
62-
* :green_heart: `:green_heart:` when fixing the CI build
63-
* :lock: `:lock:` when dealing with security
64-
* :crystal_ball: `:crystal_ball:` when experimenting
65-
* :unamused: `:unamused:` when doing chore work (updating dependencies, etc…)
66-
* :boom: `:boom:` when changing in a non-backwards-compatible way current functionality
67-
* :shipit: `:shipit:` when creating a new release
68-
6957
## Additional Resources
7058
+ [General GitHub documentation](https://help.github.com/)
7159
+ [GitHub pull request documentation](https://help.github.com/send-pull-requests/)

.gitignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,20 @@ bin/
1212
*.iml
1313
*.ipr
1414
*.iws
15+
config.properties
1516
.config.properties
1617
.checkstyle
1718
.gradletasknamecache
1819
docs
1920
.swagger-codegen-ignore
2021
.vscode/
21-
conversation/src/test/java/com/ibm/watson/developer_cloud/conversation/v1/ConversationTest.java
2222
.swagger-codegen/VERSION
2323
*.orig
2424
*.rej
2525
compare-comply/src/test/resources/compare_comply/cloud-object-storage-credentials-input.json
2626
compare-comply/src/test/resources/compare_comply/cloud-object-storage-credentials-output.json
27-
secrets.tar
27+
secrets.tar
28+
package-lock.json
29+
*.mlmodel
30+
.openapi-generator-ignore
31+
.openapi-generator/

.releaserc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"branch": "master",
3+
"tagFormat": "java-sdk-${version}",
4+
"plugins": [
5+
"@semantic-release/commit-analyzer",
6+
"@semantic-release/release-notes-generator",
7+
"@semantic-release/git",
8+
"@semantic-release/github",
9+
["@semantic-release/exec", {
10+
"prepareCmd": "bumpversion --current-version ${lastRelease.version} --new-version ${nextRelease.version} --verbose --allow-dirty patch"
11+
}]
12+
]
13+
}

.travis.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,27 @@ cache:
1515
- "$HOME/.m2"
1616
- "$HOME/.gradle/caches/"
1717
- "$HOME/.gradle/wrapper/"
18-
env:
19-
global:
20-
- secure: S2KIWOJX35j1FczyV7JRFrFpTftb8Hmkf6C50bJh8E03IbPu7tnX2znPKBbRWcIQndO6qd5dL7+BqtXabByOzd5Slj5/NBdXPcGffsO7B0cpFQS8ngpIMAGReCXQ12PbOiO8CIk2f/20lU3L0kqcP1TaPyZYIlSwkUg98ls8p90=
21-
- secure: eLv41LVZoRCqQehOM29RLodZ6NZhrIdLWklAkMdLGlFDEiVY5f0shaPLffpUiuv/3pg+CuQk9ffBc72m8lwTsimex9unC/WVsqQJhqQEWJEaPGL0UamV/HqHMeBQEpKiCcKHaBRHFGk7QQJVtiXvVvlbwk7Jks5giUR7+s/Q6iI=
22-
- secure: l0dde5NSGedD6fny5aMr1ll90FYVd7IKDsZ0Kd1GWnB+iDd3rjDBwz5q6NUwN2LTqw3jWFqmqdEnGUGO3Er0rdfdtPh3K194sTK3XuCZz8GEjFvYAEDRQ59oyK8fhw60c86cWppBQ4gluLKLstm12DLkARTUvJiIsTQTnuc2YGg=
2318
before_install:
24-
- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g'
25-
~/.m2/settings.xml
2619
- |
2720
if [ "$TRAVIS_JDK_VERSION" == "openjdk7" ]; then
2821
sudo wget "https://bouncycastle.org/download/bcprov-ext-jdk15on-158.jar" -O "${JAVA_HOME}/jre/lib/ext/bcprov-ext-jdk15on-158.jar"
2922
sudo perl -pi.bak -e 's/^(security\.provider\.)([0-9]+)/$1.($2+1)/ge' /etc/java-7-openjdk/security/java.security
3023
echo "security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider" | sudo tee -a /etc/java-7-openjdk/security/java.security
3124
fi
25+
- npm install -g [email protected]
26+
- nvm install 'lts/*'
27+
- sudo apt-get update
28+
- sudo apt-get install python
3229
install:
3330
- if [ "${TRAVIS_TAG}" = "${TRAVIS_BRANCH}" ]; then cd appscan; make asoc-tool; cd
3431
../; fi
32+
- npm install -g [email protected]
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
37+
- env
38+
- echo "TRAVIS_TAG = '${TRAVIS_TAG}'"
3739
script:
3840
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ]
3941
&& openssl aes-256-cbc -K $encrypted_42d9c68e608d_key -iv $encrypted_42d9c68e608d_iv -in secrets.tar.enc -out secrets.tar -d
@@ -48,6 +50,18 @@ script:
4850
after_success:
4951
- bash <(curl -s https://codecov.io/bash)
5052
deploy:
53+
- provider: script
54+
skip_cleanup: true
55+
script: "./gradlew bintrayUpload"
56+
on:
57+
tags: true
58+
jdk: openjdk7
59+
- provider: script
60+
skip_cleanup: true
61+
script: "semantic-release"
62+
on:
63+
branch: master
64+
jdk: openjdk7
5165
- provider: script
5266
script: ".utility/push-javadoc-to-gh-pages.sh"
5367
skip_cleanup: true

.utility/bintray-properties.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ext {
2+
packageName = PACKAGE_NAME
3+
libraryName = NAME
4+
artifact = ARTIFACT_ID
5+
libraryDescription = DESCRIPTION
6+
}
7+
8+
apply from: rootProject.file('.utility/bintray-release.gradle')

.utility/bintray-release.gradle

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
apply plugin: 'com.jfrog.bintray'
2+
apply plugin: 'com.github.johnrengelman.shadow'
3+
apply plugin: 'java'
4+
apply plugin: 'java-library'
5+
apply plugin: 'maven'
6+
apply plugin: 'maven-publish'
7+
8+
bintrayUpload.dependsOn assemble
9+
bintrayUpload.dependsOn sourcesJar
10+
bintrayUpload.dependsOn javadocJar
11+
12+
bintray {
13+
user = System.getenv('BINTRAY_USER')
14+
key = System.getenv('BINTRAY_APIKEY')
15+
publications = ['maven']
16+
publish = true
17+
pkg {
18+
repo = 'ibm-cloud-sdk-repo'
19+
name = packageName
20+
userOrg = 'ibm-cloud-sdks'
21+
licenses = ['Apache-2.0']
22+
vcsUrl = 'https://github.com/watson-developer-cloud/java-sdk.git'
23+
version {
24+
name = project.property('version')
25+
vcsTag = project.property('version')
26+
released = new Date()
27+
gpg {
28+
sign = true
29+
}
30+
mavenCentralSync {
31+
sync = true
32+
user = System.getenv('SONATYPE_USER')
33+
password = System.getenv('SONATYPE_PASSWORD')
34+
}
35+
}
36+
}
37+
}
38+
39+
def pomConfig = {
40+
scm {
41+
connection 'scm:git:[email protected]:watson-developer-cloud/java-sdk.git'
42+
developerConnection 'scm:git:[email protected]:watson-developer-cloud/java-sdk.git'
43+
url 'https://github.com/watson-developer-cloud/java-sdk'
44+
}
45+
46+
issueManagement {
47+
system 'GitHub'
48+
url 'https://github.com/watson-developer-cloud/java-sdk/issues'
49+
50+
}
51+
52+
ciManagement {
53+
system 'Travis CI'
54+
url 'https://travis-ci.org/watson-developer-cloud/java-sdk'
55+
}
56+
57+
licenses {
58+
license {
59+
name 'The Apache License, Version 2.0'
60+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
61+
}
62+
}
63+
64+
developers {
65+
developer {
66+
id 'german'
67+
name 'German Attanasio'
68+
69+
}
70+
developer {
71+
id 'logan'
72+
name 'Logan Patino'
73+
74+
}
75+
}
76+
}
77+
78+
publishing {
79+
publications {
80+
maven(MavenPublication) {
81+
from components.java
82+
artifact sourcesJar
83+
artifact javadocJar
84+
artifact shadowJar
85+
groupId 'com.ibm.watson'
86+
artifactId artifact
87+
version project.property('version')
88+
pom.withXml {
89+
def root = asNode()
90+
root.appendNode('description', libraryDescription)
91+
root.appendNode('name', libraryName)
92+
root.appendNode('url', 'https://cloud.ibm.com/developer/watson/dashboard')
93+
root.children().last() + pomConfig
94+
}
95+
}
96+
}
97+
}

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

MIGRATION.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
# v7.0.0
2+
Hello! If you're reading this, you're probably upgrading to **v7.0.0** of the Watson Java SDK. If that's the case, this guide will help you transition smoothly to get on board with the latest Watson API features in your Java code. Let's get started!
3+
4+
## **Big** things
5+
### New library name
6+
For this release, we've changed package managers and decided to change the name along with it. Be sure to change this when upgrading by looking at the installation instructions in the README: https://github.com/watson-developer-cloud/java-sdk#installation
7+
8+
### Response formats
9+
For a while now, we've had three main methods to execute an API call: `execute()`, `enqueue()`, and `rx()`. In our `v5.3.0` release, we added some variations of those methods to return not only the basic response model, but some added HTTP information like response headers.
10+
11+
In this release, we've dropped those variants and instead have modified the base methods to always return the extra information. In addition, we've replaced `rx()` with `reactiveRequest()`, which lets you leverage [RxJava](https://github.com/ReactiveX/RxJava) to do some reactive programming if that's your thing.
12+
13+
In short, the general structure of responses is different and you can read more about that [here](https://github.com/watson-developer-cloud/java-sdk#parsing-responses). If you're looking for making asynchronous API calls, you can read the details about that and the new `reactiveRequest()` method [here](https://github.com/watson-developer-cloud/java-sdk#making-asynchronous-api-calls).
14+
15+
## Everything else
16+
Along with the major changes above, there have been more detailed breaking changes across services with API changes and updates to the SDK design. You can find these nitty-gritty details in the [release notes](https://github.com/watson-developer-cloud/java-sdk/releases/tag/java-sdk-7.0.0), along with the changes that are non-breaking.
17+
18+
---
19+
120
# 4.0
221

322
## Conversation

0 commit comments

Comments
 (0)