Skip to content

Commit 4809273

Browse files
authored
Merge pull request #1052 from watson-developer-cloud/post-release-fixes
Post release fixes
2 parents fe0fa01 + 453400d commit 4809273

File tree

32 files changed

+184
-2745
lines changed

32 files changed

+184
-2745
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 6.14.0
2+
current_version = 7.0.0
33
commit = True
44
message = Update version numbers from {current_version} -> {new_version}
55

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ secrets.tar
2828
package-lock.json
2929
*.mlmodel
3030
.openapi-generator-ignore
31-
.openapi-generator/
31+
.openapi-generator/
32+
package-lock.json

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ after_success:
5252
deploy:
5353
- provider: script
5454
skip_cleanup: true
55-
script: "./gradlew bintrayUpload"
55+
script: "travis_wait 30 ./gradlew bintrayUpload"
5656
on:
5757
tags: true
5858
jdk: openjdk7

README.md

Lines changed: 70 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

88
Java 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

63117
All 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

85149
All 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

91155
Only 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

assistant/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<dependency>
88
<groupId>com.ibm.watson</groupId>
99
<artifactId>assistant</artifactId>
10-
<version>6.14.0</version>
10+
<version>7.0.0</version>
1111
</dependency>
1212
```
1313

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

1919
## Usage

assistant/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ apply plugin: 'signing'
1414
apply plugin: 'checkstyle'
1515
apply plugin: 'eclipse'
1616

17+
project.tasks.assemble.dependsOn project.tasks.shadowJar
18+
1719
task javadocJar(type: Jar) {
1820
classifier = 'javadoc'
1921
from javadoc

build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,21 @@ task signJars(type: Copy) {
6060
allprojects {
6161
apply plugin: 'java' // *Compatibility has no effect before the 'java' plug-in is applied
6262
apply plugin: 'jacoco'
63+
apply plugin: 'com.github.johnrengelman.shadow'
6364

6465
sourceCompatibility = JavaVersion.VERSION_1_7
6566
targetCompatibility = JavaVersion.VERSION_1_7
6667

6768
repositories {
6869
maven { url = "http://repo.maven.apache.org/maven2" }
6970
}
71+
72+
shadowJar {
73+
classifier = 'jar-with-dependencies'
74+
}
7075
}
7176

7277
subprojects {
73-
7478
dependencies {
7579
testCompile group: 'com.squareup.okhttp3', name: 'mockwebserver', version: '3.11.0'
7680
testCompile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'

common/build.gradle

Lines changed: 56 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,71 @@
1+
plugins {
2+
id 'ru.vyarus.animalsniffer' version '1.3.0'
3+
}
4+
5+
defaultTasks 'clean'
6+
7+
apply from: '../utils.gradle'
18
import org.apache.tools.ant.filters.*
29

3-
apply plugin: 'checkstyle'
410
apply plugin: 'java'
11+
apply plugin: 'ru.vyarus.animalsniffer'
12+
apply plugin: 'maven'
13+
apply plugin: 'signing'
14+
apply plugin: 'checkstyle'
15+
apply plugin: 'eclipse'
516

6-
checkstyle {
7-
configFile = rootProject.file('checkstyle.xml')
8-
ignoreFailures = false
17+
project.tasks.assemble.dependsOn project.tasks.shadowJar
18+
19+
task javadocJar(type: Jar) {
20+
classifier = 'javadoc'
21+
from javadoc
22+
}
23+
24+
task sourcesJar(type: Jar) {
25+
classifier = 'sources'
26+
from sourceSets.main.allSource
927
}
1028

1129
repositories {
12-
mavenCentral()
30+
maven { url = "http://repo.maven.apache.org/maven2" }
31+
}
32+
33+
artifacts {
34+
archives sourcesJar
35+
archives javadocJar
36+
}
37+
38+
signing {
39+
sign configurations.archives
40+
}
41+
42+
signArchives {
43+
onlyIf { Task task ->
44+
def shouldExec = false
45+
for (myArg in project.gradle.startParameter.taskRequests[0].args) {
46+
if (myArg.toLowerCase().contains('signjars') || myArg.toLowerCase().contains('uploadarchives')) {
47+
shouldExec = true
48+
}
49+
}
50+
return shouldExec
51+
}
52+
}
53+
54+
checkstyle {
55+
configFile = rootProject.file('checkstyle.xml')
56+
ignoreFailures = false
1357
}
1458

1559
dependencies {
1660
compile 'com.ibm.cloud:sdk-core:3.0.2'
61+
signature 'org.codehaus.mojo.signature:java17:1.0@signature'
1762
}
1863

1964
processResources {
20-
filter ReplaceTokens, tokens: ["pom.version": project.version]
65+
filter ReplaceTokens, tokens: [
66+
"pom.version": project.version,
67+
"build.date" : getDate()
68+
]
2169
}
70+
71+
apply from: rootProject.file('.utility/bintray-properties.gradle')

common/gradle.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
PACKAGE_NAME=com.ibm.watson:common
2+
ARTIFACT_ID=common
3+
NAME=IBM Watson Java SDK - Common
4+
DESCRIPTION=Classes common to the rest of the wrapper libraries in the Watson Java SDK

compare-comply/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<dependency>
88
<groupId>com.ibm.watson</groupId>
99
<artifactId>compare-comply</artifactId>
10-
<version>6.14.0</version>
10+
<version>7.0.0</version>
1111
</dependency>
1212
```
1313

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

1919
## Usage

0 commit comments

Comments
 (0)