GeezerVison is showing github.com — bump to 2.10.0 · einsnull/java-sdk@810f628
File tree
Expand file treeCollapse file tree
Open diff view settings
examples/retrieve-and-rank-solrj main/java/com/ibm/watson/developer_cloud/service test/java/com/ibm/watson/developer_cloud/service
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: README.md +4-4Lines changed: 4 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -47,13 +47,13 @@ APIs and SDKs that use cognitive computing to solve complex problems. |
47 | 47 | <dependency> |
48 | 48 | <groupId>com.ibm.watson.developer_cloud</groupId> |
49 | 49 | <artifactId>java-sdk</artifactId> |
50 | | - <version>2.9.0</version> |
| 50 | + <version>2.10.0</version> |
51 | 51 | </dependency> |
52 | 52 | ``` |
53 | 53 | ##### Gradle |
54 | 54 |
|
55 | 55 | ```gradle |
56 | | -'com.ibm.watson.developer_cloud:java-sdk:2.9.0' |
| 56 | +'com.ibm.watson.developer_cloud:java-sdk:2.10.0' |
57 | 57 | ``` |
58 | 58 |
|
59 | 59 | Now, you are ready to see some [examples](https://github.com/watson-developer-cloud/java-sdk/tree/master/examples/java/com/ibm/watson/developer_cloud). |
@@ -454,7 +454,7 @@ Gradle: |
454 | 454 |
|
455 | 455 | ```sh |
456 | 456 | $ cd java-sdk |
457 | | - $ gradle jar # build jar file (build/libs/watson-developer-cloud-2.9.0.jar) |
| 457 | + $ gradle jar # build jar file (build/libs/watson-developer-cloud-2.10.0.jar) |
458 | 458 | $ gradle test # run tests |
459 | 459 | ``` |
460 | 460 |
|
@@ -524,4 +524,4 @@ See [CONTRIBUTING.md](.github/CONTRIBUTING.md). |
524 | 524 | [apache_maven]: http://maven.apache.org/ |
525 | 525 | [releases]: https://github.com/watson-developer-cloud/java-sdk/releases |
526 | 526 |
|
527 | | -[jar]: https://github.com/watson-developer-cloud/java-sdk/releases/download/java-sdk-2.9.0/java-sdk-2.9.0-jar-with-dependencies.jar |
| 527 | +[jar]: https://github.com/watson-developer-cloud/java-sdk/releases/download/java-sdk-2.10.0/java-sdk-2.10.0-jar-with-dependencies.jar |
Collapse file
Copy file name to clipboardExpand all lines: build.gradle +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ sourceCompatibility = 1.6 |
7 | 7 | targetCompatibility = 1.6 |
8 | 8 | group = 'com.ibm.watson.developercloud' |
9 | 9 | archivesBaseName = 'watson-developer-cloud' |
10 | | -version = '2.9.0' |
| 10 | +version = '2.10.0' |
11 | 11 |
|
12 | 12 | description = 'Client library to use the IBM Watson Services and AlchemyAPI' |
13 | 13 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: examples/retrieve-and-rank-solrj/pom.xml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
27 | 27 | <dependency> |
28 | 28 | <groupId>com.ibm.watson.developer_cloud</groupId> |
29 | 29 | <artifactId>java-sdk</artifactId> |
30 | | - <version>2.9.0</version> |
| 30 | + <version>2.10.0</version> |
31 | 31 | </dependency> |
32 | 32 | </dependencies> |
33 | 33 | </project> |
Collapse file
Copy file name to clipboardExpand all lines: src/main/java/com/ibm/watson/developer_cloud/service/WatsonService.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -286,7 +286,7 @@ public String getName() { |
286 | 286 | * @return the user agent |
287 | 287 | */ |
288 | 288 | private String getUserAgent() { |
289 | | - return "watson-developer-cloud-java-sdk-2.9.0"; |
| 289 | + return "watson-developer-cloud-java-sdk-2.10.0"; |
290 | 290 | } |
291 | 291 |
|
292 | 292 | /** |
|
Collapse file
Copy file name to clipboardExpand all lines: src/test/java/com/ibm/watson/developer_cloud/service/GenericServiceTest.java +5-5Lines changed: 5 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | /** |
2 | 2 | * Copyright 2015 IBM Corp. All Rights Reserved. |
3 | | - * |
| 3 | + * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
5 | 5 | * in compliance with the License. You may obtain a copy of the License at |
6 | | - * |
| 6 | + * |
7 | 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
8 | | - * |
| 8 | + * |
9 | 9 | * Unless required by applicable law or agreed to in writing, software distributed under the License |
10 | 10 | * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
11 | 11 | * or implied. See the License for the specific language governing permissions and limitations under |
@@ -38,7 +38,7 @@ public class GenericServiceTest extends WatsonServiceUnitTest { |
38 | 38 |
|
39 | 39 | /** |
40 | 40 | * Mock an API call and return an error. |
41 | | - * |
| 41 | + * |
42 | 42 | * @param code the code |
43 | 43 | * @param errorMessage the error message |
44 | 44 | */ |
@@ -179,7 +179,7 @@ public void testUserAgentIsSet() { |
179 | 179 | mockAPICall(); |
180 | 180 | service.getProfile(sampleText); |
181 | 181 | mockServer.verify(new HttpRequest().withMethod("POST").withHeader( |
182 | | - new Header(HttpHeaders.USER_AGENT, "watson-developer-cloud-java-sdk-2.9.0"))); |
| 182 | + new Header(HttpHeaders.USER_AGENT, "watson-developer-cloud-java-sdk-2.10.0"))); |
183 | 183 | } |
184 | 184 |
|
185 | 185 | @Test |
|