Skip to content

Commit 6dcb221

Browse files
Merge pull request #252 from watson-developer-cloud/update-to-okhttp3
v3.0.0
2 parents 9d2da7d + 23ae3e2 commit 6dcb221

File tree

296 files changed

+4994
-5886
lines changed

Some content is hidden

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

296 files changed

+4994
-5886
lines changed

.travis.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,29 @@ sudo: false
22
language: java
33
install: /bin/true
44
script: ./.utility/travis.sh
5+
56
jdk:
67
- oraclejdk8
78
- oraclejdk7
9+
810
cache:
911
directories:
1012
- $HOME/.m2/repository
11-
before_install:
12-
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_a973fe4f8e79_key -iv $encrypted_a973fe4f8e79_iv -in config.properties.enc -out src/test/resources/config.properties -d || true'
13-
- pip install --user codecov
14-
notifications:
15-
email: false
13+
1614
env:
1715
global:
1816
- secure: VvKBWj1OCu7SH+utwqe7kdli0N7jTYQ7D/citdFIV0cDjpcX3MwxfPcIeMvOuWLgJKaOSD4xnG9pOgMoLMMCGcsCHa2bqx78clA8t4sV7I0sx8pSN2Iuj/wQJvNV3/uEETC84+P9hKIt+o8JZqhgC1GEpz5fbyKyUIlRkspW1WQ=
17+
- secure: oU2JnPAV8BSQurUpleD2QwPtF+/WTAeRokYBdTA2lrhp4XtExZ33PMjIdAyMCORtuPNYLWl/St7HpJNN0f63FlB7hWmZUq4UIHpMPhHR/H/32AwqZ9A99wNt873IPortlbxM2tKJRSCyIMzFSyoWXY1rVU0FE64Rrku6/lifQSQ=
18+
- secure: eeYXzeW1kMU9Wbg6B6tjpzGq9rGliKlFtk+4zit3QxZsxsBver28YJVnpIhyaZlD3bZ4Pq5MmANV+zR/enRxQ3HaGMhDJO0fsyIpoA6D/qw7N/meMS7iBF66l/XH+XoMw8t/rxKyCyRy0FivNR2IGHBGlOOIM9GuIQyxXXPL0oI=
19+
20+
before_install:
21+
- pip install --user codecov
22+
1923
after_success:
2024
- codecov
2125
- mvn javadoc:javadoc
2226
- .utility/push-javadoc-to-gh-pages.sh
27+
- .utility/deploy_snapshot.sh
28+
29+
notifications:
30+
email: false

.utility/deploy_snapshot.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
#
3+
# Deploy a jar, source jar, and javadoc jar to Sonatype's snapshot repo.
4+
#
5+
# Adapted from https://coderwall.com/p/9b_lfq and
6+
# http://benlimmer.com/2013/12/26/automatically-publish-javadoc-to-gh-pages-with-travis-ci/
7+
8+
9+
set -e -u
10+
11+
if [ "$TRAVIS_REPO_SLUG" == "watson-developer-cloud/java-sdk" ] && \
12+
[ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && \
13+
[ "$TRAVIS_PULL_REQUEST" == "false" ] && \
14+
[ "$TRAVIS_BRANCH" == "master" ]; then
15+
echo "Publishing Maven snapshot..."
16+
17+
mvn clean source:jar javadoc:jar deploy --settings=".utility/settings.xml" -DskipTests=true
18+
19+
echo "Maven snapshot published."
20+
fi

.utility/settings.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<settings>
2+
<servers>
3+
<server>
4+
<id>sonatype-nexus-snapshots</id>
5+
<username>${env.CI_DEPLOY_USERNAME}</username>
6+
<password>${env.CI_DEPLOY_PASSWORD}</password>
7+
</server>
8+
</servers>
9+
</settings>

.utility/travis.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
44
echo '$TRAVIS_PULL_REQUEST is false, running all tests'
5-
mvn clean cobertura:cobertura-integration-test
5+
openssl aes-256-cbc -K $encrypted_a973fe4f8e79_key -iv $encrypted_a973fe4f8e79_iv -in config.properties.enc -out src/test/resources/config.properties -d
6+
mvn clean cobertura:cobertura-integration-test
67
else
78
echo '$TRAVIS_PULL_REQUEST is not false ($TRAVIS_PULL_REQUEST), running unit tests'
89
mvn clean test

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Change Log
2+
==========
3+
4+
## Version 3.0.0-RC1
5+
6+
_2016-04-22_
7+
8+
The SDK 3.0 is designed around a new API that offers asynchronous callbacks
9+
in addition to synchronous blocking calls. It uses modern Java patterns like
10+
immutability and chained builders.
11+
12+
* New: Deprecated methods were removed
13+
* Fix: Websockets issues during a recognition using Speech to Text
14+
* New: Automatic snapshot deployments to Sonatype
15+
* New: Chained builders for Speech to text and Tradeoff Analytics
16+
17+
18+
## Version 2.10.0
19+
20+
_2016-04-18_
21+
22+
* Fix: Switch from String to Integer in AlchemyVision face recognition
23+
* New: Enumerations for Languages in Language Translation
24+
* Fix: Error in AlchemyLanguage when language wasn't specified

0 commit comments

Comments
 (0)