Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
314 changes: 260 additions & 54 deletions README.md

Large diffs are not rendered by default.

2,087 changes: 2,087 additions & 0 deletions adminrest.yaml

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions build/generateJavadocIndex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,23 @@ echo '<!DOCTYPE html>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>IBM Cloud Eventstreams SDK</title>
<title>IBM Cloud Event Streams SDK</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="page-header">
<h1>IBM Cloud Eventstreams SDK Java SDK Documentation</h1>
<h1>IBM Cloud Event Streams SDK Java SDK Documentation</h1>
</div>

<p><a href="https://cloud.ibm.com/apidocs?category=eventstreams_sdk">Eventstreams SDK Info</a>
<p><a href="https://cloud.ibm.com/apidocs?category=eventstreams_sdk">Event Streams SDK Info</a>
| <a href="https://github.com/IBM/eventstreams-java-sdk">GitHub</a>
</p>

<p>Javadoc by branch/release:</p>
<ul><li><a href="docs/latest">Latest</a></li>'
ls docs | grep --invert-match index.html | sed 's/^.*/<li><a href="docs\/&">&<\/a><\/li>/'
<p>Javadoc by release:</p>
<ul>'
echo ${TRAVIS_BRANCH} | sed 's/^.*/ <li><a href="docs\/&">Latest release<\/a><\/li>/'
ls docs | grep --invert-match index.html | sed 's/^.*/ <li><a href="docs\/&">&<\/a><\/li>/'
echo ' </ul>
</div>
</body>
Expand Down
21 changes: 5 additions & 16 deletions build/publishJavadoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# The javadocs are committed and pushed to the git repository's gh-pages branch.
# Be sure to customize this file to reflect your SDK project's settings (git url,

# Avoid publishing javadocs for a PR build
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" ]; then
# Publish javadocs only for a tagged-release.
if [[ -n "${TRAVIS_TAG}" ]]; then

printf "\n>>>>> Publishing javadoc for release build: repo=%s branch=%s build_num=%s job_num=%s\n" ${TRAVIS_REPO_SLUG} ${TRAVIS_BRANCH} ${TRAVIS_BUILD_NUMBER} ${TRAVIS_JOB_NUMBER}

Expand All @@ -15,31 +15,20 @@ if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" ]; then

printf "\n>>>>> Finished cloning...\n"


pushd gh-pages

# Create a new directory for this branch/tag and copy the aggregated javadocs there.
printf "\n>>>>> Copying aggregated javadocs to new tagged-release directory: %s\n" ${TRAVIS_BRANCH}
# Create a new directory for this branch/tag and copy the javadocs there.
printf "\n>>>>> Copying javadocs to new directory: docs/%s\n" ${TRAVIS_BRANCH}
rm -rf docs/${TRAVIS_BRANCH}
mkdir -p docs/${TRAVIS_BRANCH}
cp -rf ../target/site/apidocs/* docs/${TRAVIS_BRANCH}

printf "\n>>>>> Generating gh-pages index.html...\n"
../build/generateJavadocIndex.sh > index.html

# Update the 'latest' symlink to point to this branch if it's a tagged release.
if [ -n "$TRAVIS_TAG" ]; then
pushd docs
rm latest
ln -s ./${TRAVIS_TAG} latest
printf "\n>>>>> Updated 'docs/latest' symlink:\n"
ls -l latest
popd
fi

printf "\n>>>>> Committing new javadoc...\n"
git add -f .
git commit -m "Javadoc for release ${TRAVIS_TAG} (${TRAVIS_COMMIT})"
git commit -m "docs: latest javadoc for ${TRAVIS_BRANCH} (${TRAVIS_COMMIT})"
git push -f origin gh-pages

popd
Expand Down
2 changes: 1 addition & 1 deletion build/setupSigning.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ echo "Importing signing key..."
openssl aes-256-cbc -K $encrypted_4c2ca4326cdc_key -iv $encrypted_4c2ca4326cdc_iv -in build/signing.key.enc -out build/signing.key -d

gpg --version
gpg --fast-import build/signing.key
gpg --batch --import build/signing.key
rm build/signing.key

echo "Signing key import finished!"
12 changes: 7 additions & 5 deletions modules/adminrest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<parent>
<artifactId>eventstreams-sdk</artifactId>
<groupId>com.ibm.cloud</groupId>
<version>99-SNAPSHOT</version>
<version>1.3.0</version>
<relativePath>../..</relativePath>
</parent>

<artifactId>eventstreams_sdk</artifactId>
<artifactId>eventstreams_sdk-adminrest</artifactId>

<name>IBM Cloud Eventstreams Java SDK</name>
<name>IBM Cloud Event Streams Java SDK</name>
<packaging>jar</packaging>

<dependencies>
Expand All @@ -20,12 +20,14 @@
<artifactId>sdk-core</artifactId>
</dependency>
<dependency>
<artifactId>adminrest-common</artifactId>
<artifactId>common</artifactId>
<groupId>${project.groupId}</groupId>
<version>1.3.0</version>
</dependency>
<dependency>
<artifactId>adminrest-common</artifactId>
<artifactId>common</artifactId>
<groupId>${project.groupId}</groupId>
<version>1.3.0</version>
<type>test-jar</type>
<classifier>tests</classifier>
<scope>test</scope>
Expand Down
Loading