Skip to content

Commit 453400d

Browse files
committed
docs(README): Add instructions for installation while we wait for things to settle with Maven Centra
1 parent b5fe280 commit 453400d

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

README.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,60 @@ 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

63117
All the services:
64118

@@ -81,6 +135,16 @@ Only Discovery:
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

85149
All the services:
86150

0 commit comments

Comments
 (0)