Skip to content

Commit 205b733

Browse files
committed
---
yaml --- r: 1839 b: refs/heads/pubsub-alpha c: 0e32a4b h: refs/heads/master i: 1837: aaeff8e 1835: 498a3a9 1831: 6ecba58 1823: 30193bb
1 parent 36b3623 commit 205b733

9 files changed

Lines changed: 86 additions & 34 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ refs/heads/master: 689bbb466df4b2d5d2483d6edb8ac5c7c7f7c6fa
33
refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44
refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55
refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
6-
refs/heads/pubsub-alpha: fa9348edd3316ad230a8c93a2f858f8cb364a6b0
6+
refs/heads/pubsub-alpha: 0e32a4ba0674b15ea694a0e43369ae110c9f6456
77
refs/heads/resource-manager: ebf4adc5ee835cd2086c4ac5b4e78d01a5a005a7
88
refs/heads/update-datastore: 482954f2c5055231e5b3122ea91d2ba00ce8187c
99
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

branches/pubsub-alpha/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,22 @@ This client supports the following Google Cloud Platform services:
2020
2121
Quickstart
2222
----------
23-
Add this to your pom.xml file
23+
If you are using Maven, add this to your pom.xml file
2424
```xml
2525
<dependency>
2626
<groupId>com.google.gcloud</groupId>
2727
<artifactId>gcloud-java</artifactId>
2828
<version>0.0.10</version>
2929
</dependency>
3030
```
31+
If you are using Gradle, add this to your dependencies
32+
```Groovy
33+
compile 'com.google.gcloud:gcloud-java:jar:0.0.10'
34+
```
35+
If you are using SBT, add this to your dependencies
36+
```Scala
37+
libraryDependencies += "com.google.gcloud" % "gcloud-java" % "0.0.10"
38+
```
3139

3240
Example Applications
3341
--------------------

branches/pubsub-alpha/gcloud-java-core/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,22 @@ This module provides common functionality required by service-specific modules o
1212

1313
Quickstart
1414
----------
15-
Add this to your pom.xml file
15+
If you are using Maven, add this to your pom.xml file
1616
```xml
1717
<dependency>
1818
<groupId>com.google.gcloud</groupId>
1919
<artifactId>gcloud-java-core</artifactId>
2020
<version>0.0.10</version>
2121
</dependency>
2222
```
23+
If you are using Gradle, add this to your dependencies
24+
```Groovy
25+
compile 'com.google.gcloud:gcloud-java-core:jar:0.0.10'
26+
```
27+
If you are using SBT, add this to your dependencies
28+
```Scala
29+
libraryDependencies += "com.google.gcloud" % "gcloud-java-core" % "0.0.10"
30+
```
2331

2432
Java Versions
2533
-------------

branches/pubsub-alpha/gcloud-java-datastore/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,22 @@ Java idiomatic client for [Google Cloud Datastore] (https://cloud.google.com/dat
1515
1616
Quickstart
1717
----------
18-
Add this to your pom.xml file
18+
If you are using Maven, add this to your pom.xml file
1919
```xml
2020
<dependency>
2121
<groupId>com.google.gcloud</groupId>
2222
<artifactId>gcloud-java-datastore</artifactId>
2323
<version>0.0.10</version>
2424
</dependency>
2525
```
26+
If you are using Gradle, add this to your dependencies
27+
```Groovy
28+
compile 'com.google.gcloud:gcloud-java-datastore:jar:0.0.10'
29+
```
30+
If you are using SBT, add this to your dependencies
31+
```Scala
32+
libraryDependencies += "com.google.gcloud" % "gcloud-java-datastore" % "0.0.10"
33+
```
2634

2735
Example Application
2836
--------------------

branches/pubsub-alpha/gcloud-java-examples/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,22 @@ Examples for gcloud-java (Java idiomatic client for [Google Cloud Platform][clou
1212

1313
Quickstart
1414
----------
15-
Add this to your pom.xml file
15+
If you are using Maven, add this to your pom.xml file
1616
```xml
1717
<dependency>
1818
<groupId>com.google.gcloud</groupId>
1919
<artifactId>gcloud-java-examples</artifactId>
2020
<version>0.0.10</version>
2121
</dependency>
2222
```
23+
If you are using Gradle, add this to your dependencies
24+
```Groovy
25+
compile 'com.google.gcloud:gcloud-java-examples:jar:0.0.10'
26+
```
27+
If you are using SBT, add this to your dependencies
28+
```Scala
29+
libraryDependencies += "com.google.gcloud" % "gcloud-java-examples" % "0.0.10"
30+
```
2331

2432
To run examples from your command line:
2533

branches/pubsub-alpha/gcloud-java-storage/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,22 @@ Java idiomatic client for [Google Cloud Storage] (https://cloud.google.com/stora
1515
1616
Quickstart
1717
----------
18-
Add this to your pom.xml file
18+
If you are using Maven, add this to your pom.xml file
1919
```xml
2020
<dependency>
2121
<groupId>com.google.gcloud</groupId>
2222
<artifactId>gcloud-java-storage</artifactId>
2323
<version>0.0.10</version>
2424
</dependency>
2525
```
26+
If you are using Gradle, add this to your dependencies
27+
```Groovy
28+
compile 'com.google.gcloud:gcloud-java-storage:jar:0.0.10'
29+
```
30+
If you are using SBT, add this to your dependencies
31+
```Scala
32+
libraryDependencies += "com.google.gcloud" % "gcloud-java-storage" % "0.0.10"
33+
```
2634

2735
Example Application
2836
-------------------

branches/pubsub-alpha/gcloud-java/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,22 @@ This client supports the following Google Cloud Platform services:
2020
2121
Quickstart
2222
----------
23-
Add this to your pom.xml file
23+
If you are using Maven, add this to your pom.xml file
2424
```xml
2525
<dependency>
2626
<groupId>com.google.gcloud</groupId>
2727
<artifactId>gcloud-java</artifactId>
2828
<version>0.0.10</version>
2929
</dependency>
3030
```
31+
If you are using Gradle, add this to your dependencies
32+
```Groovy
33+
compile 'com.google.gcloud:gcloud-java:jar:0.0.10'
34+
```
35+
If you are using SBT, add this to your dependencies
36+
```Scala
37+
libraryDependencies += "com.google.gcloud" % "gcloud-java" % "0.0.10"
38+
```
3139

3240
Java Versions
3341
-------------

branches/pubsub-alpha/utilities/after_success.sh

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,37 @@ source ./utilities/integration_test_env.sh
77
echo "Travis branch: " ${TRAVIS_BRANCH}
88
echo "Travis pull request: " ${TRAVIS_PULL_REQUEST}
99
echo "Travis JDK version: " ${TRAVIS_JDK_VERSION}
10-
if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" -a "${TRAVIS_BRANCH}" == "master" -a "${TRAVIS_PULL_REQUEST}" == "false" ]; then
11-
mvn cobertura:cobertura coveralls:report
1210

13-
SITE_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -Ev '(^\[|\w+:)')
14-
if [ "${SITE_VERSION##*-}" != "SNAPSHOT" ]; then
15-
# Deploy site if not a SNAPSHOT
16-
git config --global user.name "travis-ci"
17-
git config --global user.email "[email protected]"
18-
git clone --branch gh-pages --single-branch https://github.com/GoogleCloudPlatform/gcloud-java/ tmp_gh-pages
19-
mkdir -p tmp_gh-pages/$SITE_VERSION
20-
mvn site -DskipTests=true
21-
mvn site:stage -DtopSiteURL=http://googlecloudplatform.github.io/gcloud-java/site/${SITE_VERSION}/
22-
cd tmp_gh-pages
23-
cp -r ../target/staging/$SITE_VERSION/* $SITE_VERSION/
24-
sed -i "s/{{SITE_VERSION}}/$SITE_VERSION/g" ${SITE_VERSION}/index.html # Update "Quickstart with Maven" to reflect version change
25-
git add $SITE_VERSION
26-
echo "<html><head><meta http-equiv=\"refresh\" content=\"0; URL='http://GoogleCloudPlatform.github.io/gcloud-java/${SITE_VERSION}/index.html'\" /></head><body></body></html>" > index.html
27-
git add index.html
28-
echo "<html><head><script>window.location.replace('/gcloud-java/${SITE_VERSION}/apidocs' + location.search)</script></head><body></body></html>" > apidocs/index.html
29-
git add apidocs/index.html
30-
git commit -m "Added a new site for version $SITE_VERSION and updated the root directory's redirect."
31-
git config --global push.default simple
32-
git push --quiet "https://${CI_DEPLOY_USERNAME}:${CI_DEPLOY_PASSWORD}@github.com/GoogleCloudPlatform/gcloud-java.git" > /dev/null 2>&1
11+
if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" -a "${TRAVIS_BRANCH}" == "master" ]; then
12+
mvn clean cobertura:cobertura coveralls:report
13+
if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
14+
SITE_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -Ev '(^\[|\w+:)')
15+
if [ "${SITE_VERSION##*-}" != "SNAPSHOT" ]; then
16+
# Deploy site if not a SNAPSHOT
17+
git config --global user.name "travis-ci"
18+
git config --global user.email "[email protected]"
19+
git clone --branch gh-pages --single-branch https://github.com/GoogleCloudPlatform/gcloud-java/ tmp_gh-pages
20+
mkdir -p tmp_gh-pages/$SITE_VERSION
21+
mvn site -DskipTests=true
22+
mvn site:stage -DtopSiteURL=http://googlecloudplatform.github.io/gcloud-java/site/${SITE_VERSION}/
23+
cd tmp_gh-pages
24+
cp -r ../target/staging/$SITE_VERSION/* $SITE_VERSION/
25+
sed -i "s/{{SITE_VERSION}}/$SITE_VERSION/g" ${SITE_VERSION}/index.html # Update "Quickstart with Maven" to reflect version change
26+
git add $SITE_VERSION
27+
echo "<html><head><meta http-equiv=\"refresh\" content=\"0; URL='http://GoogleCloudPlatform.github.io/gcloud-java/${SITE_VERSION}/index.html'\" /></head><body></body></html>" > index.html
28+
git add index.html
29+
echo "<html><head><script>window.location.replace('/gcloud-java/${SITE_VERSION}/apidocs' + location.search)</script></head><body></body></html>" > apidocs/index.html
30+
git add apidocs/index.html
31+
git commit -m "Added a new site for version $SITE_VERSION and updated the root directory's redirect."
32+
git config --global push.default simple
33+
git push --quiet "https://${CI_DEPLOY_USERNAME}:${CI_DEPLOY_PASSWORD}@github.com/GoogleCloudPlatform/gcloud-java.git" > /dev/null 2>&1
3334

34-
cd ..
35-
utilities/update_docs_version.sh # Update version in READMEs
36-
mvn clean deploy --settings ~/.m2/settings.xml -P sign-deploy
37-
else
38-
mvn clean deploy -DskipTests=true -Dgpg.skip=true --settings ~/.m2/settings.xml
35+
cd ..
36+
utilities/update_docs_version.sh # Update version in READMEs
37+
mvn clean deploy --settings ~/.m2/settings.xml -P sign-deploy
38+
else
39+
mvn clean deploy -DskipTests=true -Dgpg.skip=true --settings ~/.m2/settings.xml
40+
fi
3941
fi
4042
else
4143
echo "Not deploying artifacts. This is only done with non-pull-request commits to master branch with Oracle Java 7 builds."

branches/pubsub-alpha/utilities/update_docs_version.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ if [ "${RELEASED_VERSION##*-}" != "SNAPSHOT" ]; then
1414
for item in ${module_folders[*]}
1515
do
1616
sed -ri "s/<version>[0-9]+\.[0-9]+\.[0-9]+<\/version>/<version>${RELEASED_VERSION}<\/version>/g" ${item}/README.md
17+
sed -ri "s/:[0-9]+\.[0-9]+\.[0-9]+'/:${RELEASED_VERSION}'/g" ${item}/README.md
18+
sed -ri "s/\"[0-9]+\.[0-9]+\.[0-9]+\"/\"${RELEASED_VERSION}\"/g" ${item}/README.md
1719
done
1820

1921
git add README.md */README.md

0 commit comments

Comments
 (0)