Skip to content

Commit

Permalink
Merge pull request #1144 from watson-developer-cloud/rc
Browse files Browse the repository at this point in the history
Major Release 2020
  • Loading branch information
kevinkowa authored Dec 9, 2020
2 parents e13acba + 7a1049a commit 47fdc0f
Show file tree
Hide file tree
Showing 1,369 changed files with 73,024 additions and 14,569 deletions.
10 changes: 7 additions & 3 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
[bumpversion]
current_version = 8.6.3
current_version = 9.0.0-rc.3
commit = True
message = Update version numbers from {current_version} -> {new_version}
search = {current_version}
replace = {new_version}
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?P<rc>\-rc\.\d+)?
serialize =
{major}.{minor}.{patch}{rc}
{major}.{minor}.{patch}

[bumpversion:file:gradle.properties]

Expand Down Expand Up @@ -32,6 +38,4 @@ message = Update version numbers from {current_version} -> {new_version}
[bumpversion:file:docker/pom.xml]

[bumpversion:file:examples/build.gradle]
search = {current_version}
replace = {new_version}

10 changes: 8 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"branch": "master",
"branches": [
"master",
{
"name": "rc",
"prerelease": true
}
],
"debug": true,
"plugins": [
"@semantic-release/commit-analyzer",
Expand All @@ -8,7 +14,7 @@
[
"@semantic-release/exec",
{
"prepareCmd": "bumpversion --current-version ${lastRelease.version} --new-version ${nextRelease.version} --allow-dirty patch"
"prepareCmd": ".utility/bumpversion.sh ${lastRelease.version} ${nextRelease.version}"
}
],
[
Expand Down
23 changes: 7 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist: trusty
dist: xenial
os: linux
branches:
except:
Expand All @@ -12,7 +12,7 @@ stages:
jobs:
include:
- stage: Build and test
jdk: oraclejdk8
jdk: openjdk8
language: java
before_install:
- .utility/decrypt-service-instance-apikeys.sh
Expand All @@ -21,21 +21,12 @@ jobs:
- ./gradlew checkstyleTest
- travis_retry .utility/travis-run-tests.sh
after_success:
- bash <(curl -s https://codecov.io/bash)
- jdk: openjdk7
language: java
before_install:
- .utility/patch-openjdk7.sh
- .utility/decrypt-service-instance-apikeys.sh
script:
- travis_retry .utility/travis-run-tests.sh
after_success:
- bash <(curl -s https://codecov.io/bash)
- bash <(curl -s https://codecov.io/bash)+++++++

- stage: Semantic release
jdk: openjdk7
jdk: openjdk8
language: java
if: branch = master AND type = push AND fork = false
if: (branch = master OR branch = rc) AND type = push AND fork = false
before_install:
- pip install --user bumpversion
- nvm install 12
Expand All @@ -46,15 +37,15 @@ jobs:
- npx semantic-release

- stage: Publish javadoc
jdk: openjdk7
jdk: openjdk8
language: java
if: type = push AND fork = false
script:
- ./gradlew docs
- .utility/push-javadoc-to-gh-pages.sh

- stage: Release to bintray
jdk: openjdk7
jdk: openjdk8
language: java
if: tag IS present
script:
Expand Down
11 changes: 11 additions & 0 deletions .utility/bumpversion.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -e

VERSION="patch"

if [ "${TRAVIS_BRANCH}" != "master" ]; then
VERSION="rc"
fi

bumpversion --current-version $1 --new-version $2 --allow-dirty $VERSION --verbose
2 changes: 1 addition & 1 deletion .utility/decrypt-service-instance-apikeys.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo -e "Decrypt service instance apikeys for branch $TRAVIS_BRANCH.\n"
openssl aes-256-cbc -K $encrypted_75da58c42a01_key -iv $encrypted_75da58c42a01_iv \
openssl aes-256-cbc -K $encrypted_79638a2d7865_key -iv $encrypted_79638a2d7865_iv \
-in config.properties.enc -out common/src/test/resources/config.properties -d
else
echo -e "Not Decrypt service instance apikeys for branch $TRAVIS_BRANCH.\n"
Expand Down
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
# [9.0.0-rc.3](https://github.com/watson-developer-cloud/java-sdk/compare/v9.0.0-rc.2...v9.0.0-rc.3) (2020-12-03)


### Features

* **generation:** api def tag 'sdk-major-release-2020' gen tag 3.19.0 ([3414833](https://github.com/watson-developer-cloud/java-sdk/commit/3414833807abe8534e6daf838500a5426e9e4e04))


### BREAKING CHANGES

* **generation:** api def tag 'sdk-major-release-2020' gen tag 3.19.0

# [9.0.0-rc.2](https://github.com/watson-developer-cloud/java-sdk/compare/v9.0.0-rc.1...v9.0.0-rc.2) (2020-11-11)


### Bug Fixes

* typo in migration guide ([984a350](https://github.com/watson-developer-cloud/java-sdk/commit/984a3503502a7867470b3e342fe959643ae0a561))
* update version to 9.0.0-rc.2 ([ab57379](https://github.com/watson-developer-cloud/java-sdk/commit/ab573794f351e00f6fb97e3fed0e7d3ad20fb824))


### Features

* add bumpversion release candidate support ([b794bb6](https://github.com/watson-developer-cloud/java-sdk/commit/b794bb6407e461af0edd99952e08b98e8d4a95e2))

# [9.0.0-rc.1](https://github.com/watson-developer-cloud/java-sdk/compare/v8.6.3...v9.0.0-rc.1) (2020-11-10)


### chore

* update for semantic-release ([22a7d00](https://github.com/watson-developer-cloud/java-sdk/commit/22a7d008c6e333a944c3b0f6a96f142f587e5aed))


### Features

* **generation:** api def tag 'sdk-major-release-2020-rc01' gen commit '7cc0550' ([3bec20d](https://github.com/watson-developer-cloud/java-sdk/commit/3bec20d5ccae38ba2a1f1d8adf6cf16cdc2c6a18))
* **speech-to-text-v1:** add RecognizeWithWebsocketsOptions model ([d3b7fe9](https://github.com/watson-developer-cloud/java-sdk/commit/d3b7fe91fad17fa6ef6dd00a5ecc38b689dfd016))


### BREAKING CHANGES

* generated with 3.18.0 of the IBM openapi sdk generator

## [8.6.3](https://github.com/watson-developer-cloud/java-sdk/compare/v8.6.2...v8.6.3) (2020-10-26)


Expand Down
Loading

0 comments on commit 47fdc0f

Please sign in to comment.