22
33[ ![ Build Status] ( https://travis-ci.org/watson-developer-cloud/java-sdk.svg?branch=master )] ( https://travis-ci.org/watson-developer-cloud/java-sdk )
44[ ![ Slack] ( https://wdc-slack-inviter.mybluemix.net/badge.svg )] ( https://wdc-slack-inviter.mybluemix.net )
5- [ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/com.ibm.watson.developer_cloud /java-sdk/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/com.ibm.watson.developer_cloud/java-sdk )
5+ [ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/com.ibm.watson/java-sdk/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/com.ibm.watson.developer_cloud/java-sdk )
66[ ![ CLA assistant] ( https://cla-assistant.io/readme/badge/watson-developer-cloud/java-sdk )] ( https://cla-assistant.io/watson-developer-cloud/java-sdk )
77
88Java client library to use the [ Watson APIs] [ wdc ] .
@@ -59,14 +59,68 @@ Java client library to use the [Watson APIs][wdc].
5959## Installation
6060
6161##### Maven
62+ First, you'll need to edit your ` settings.xml ` file to target the right repository. Here's an example file configured to use the library:
63+ ``` xml
64+ <settings xmlns =' http://maven.apache.org/SETTINGS/1.0.0' xsi : schemaLocation =' http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd' xmlns : xsi =' http://www.w3.org/2001/XMLSchema-instance' >
65+ <profiles >
66+ <profile >
67+ <repositories >
68+ <repository >
69+ <snapshots >
70+ <enabled >
71+ false
72+ </enabled >
73+ </snapshots >
74+ <id >
75+ bintray-ibm-cloud-sdks-ibm-cloud-sdk-repo
76+ </id >
77+ <name >
78+ bintray
79+ </name >
80+ <url >
81+ https://dl.bintray.com/ibm-cloud-sdks/ibm-cloud-sdk-repo
82+ </url >
83+ </repository >
84+ </repositories >
85+ <pluginRepositories >
86+ <pluginRepository >
87+ <snapshots >
88+ <enabled >
89+ false
90+ </enabled >
91+ </snapshots >
92+ <id >
93+ bintray-ibm-cloud-sdks-ibm-cloud-sdk-repo
94+ </id >
95+ <name >
96+ bintray-plugins
97+ </name >
98+ <url >
99+ https://dl.bintray.com/ibm-cloud-sdks/ibm-cloud-sdk-repo
100+ </url >
101+ </pluginRepository >
102+ </pluginRepositories >
103+ <id >
104+ bintray
105+ </id >
106+ </profile >
107+ </profiles >
108+ <activeProfiles >
109+ <activeProfile >
110+ bintray
111+ </activeProfile >
112+ </activeProfiles >
113+ </settings >
114+ ```
115+ Then, you can add the dependencies in your project POM.
62116
63117All the services:
64118
65119``` xml
66120<dependency >
67121 <groupId >com.ibm.watson</groupId >
68122 <artifactId >ibm-watson</artifactId >
69- <version >6.14 .0</version >
123+ <version >7.0 .0</version >
70124</dependency >
71125```
72126
@@ -76,22 +130,32 @@ Only Discovery:
76130<dependency >
77131 <groupId >com.ibm.watson</groupId >
78132 <artifactId >discovery</artifactId >
79- <version >6.14 .0</version >
133+ <version >7.0 .0</version >
80134</dependency >
81135```
82136
83137##### Gradle
138+ First, edit your repositories in your ` build.gradle ` file to target the right repository:
139+ ``` gradle
140+ repositories {
141+ maven {
142+ url "https://dl.bintray.com/ibm-cloud-sdks/ibm-cloud-sdk-repo"
143+ }
144+ }
145+ ```
146+
147+ Then, you can add the actual dependencies.
84148
85149All the services:
86150
87151``` gradle
88- 'com.ibm.watson:ibm-watson:6.14 .0'
152+ 'com.ibm.watson:ibm-watson:7.0 .0'
89153```
90154
91155Only Assistant:
92156
93157``` gradle
94- 'com.ibm.watson:assistant:6.14 .0'
158+ 'com.ibm.watson:assistant:7.0 .0'
95159```
96160
97161##### JAR
@@ -401,4 +465,4 @@ We do :sunglasses: http://ibm.github.io/
401465[ ibm-cloud-onboarding ] : http://cloud.ibm.com/registration?target=/developer/watson&cm_sp=WatsonPlatform-WatsonServices-_-OnPageNavLink-IBMWatson_SDKs-_-Java
402466
403467
404- [ jar ] : https://github.com/watson-developer-cloud/java-sdk/releases/download/java-sdk-6.14 .0/java-sdk-6.14 .0-jar-with-dependencies.jar
468+ [ jar ] : https://github.com/watson-developer-cloud/java-sdk/releases/download/java-sdk-7.0 .0/java-sdk-7.0 .0-jar-with-dependencies.jar
0 commit comments