diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml
index 4f6a41a5420e..4c4d2edd4eaa 100644
--- a/google-cloud-clients/pom.xml
+++ b/google-cloud-clients/pom.xml
@@ -153,7 +153,7 @@
UTF-8
UTF-8
github
- google-cloud
+ google-cloud-clients
0.47.1-alpha-SNAPSHOT
1.23.0
1.25.0
diff --git a/src/site/resources/css/github.min.css b/google-cloud-clients/src/site/resources/css/github.min.css
similarity index 100%
rename from src/site/resources/css/github.min.css
rename to google-cloud-clients/src/site/resources/css/github.min.css
diff --git a/src/site/resources/css/normalize.css b/google-cloud-clients/src/site/resources/css/normalize.css
similarity index 100%
rename from src/site/resources/css/normalize.css
rename to google-cloud-clients/src/site/resources/css/normalize.css
diff --git a/src/site/resources/css/site.css b/google-cloud-clients/src/site/resources/css/site.css
similarity index 100%
rename from src/site/resources/css/site.css
rename to google-cloud-clients/src/site/resources/css/site.css
diff --git a/src/site/resources/img/icon-arrow-bullet.svg b/google-cloud-clients/src/site/resources/img/icon-arrow-bullet.svg
similarity index 98%
rename from src/site/resources/img/icon-arrow-bullet.svg
rename to google-cloud-clients/src/site/resources/img/icon-arrow-bullet.svg
index dd9acb566eb8..cdeb36e55885 100644
--- a/src/site/resources/img/icon-arrow-bullet.svg
+++ b/google-cloud-clients/src/site/resources/img/icon-arrow-bullet.svg
@@ -1,7 +1,7 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/site/resources/img/icon-dropdown-faq.svg b/google-cloud-clients/src/site/resources/img/icon-dropdown-faq.svg
similarity index 98%
rename from src/site/resources/img/icon-dropdown-faq.svg
rename to google-cloud-clients/src/site/resources/img/icon-dropdown-faq.svg
index 786bcdc7d131..16128ef4e132 100644
--- a/src/site/resources/img/icon-dropdown-faq.svg
+++ b/google-cloud-clients/src/site/resources/img/icon-dropdown-faq.svg
@@ -1,7 +1,7 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/site/resources/img/icon-dropdown.svg b/google-cloud-clients/src/site/resources/img/icon-dropdown.svg
similarity index 98%
rename from src/site/resources/img/icon-dropdown.svg
rename to google-cloud-clients/src/site/resources/img/icon-dropdown.svg
index 3642565ff6b5..6c3105889369 100644
--- a/src/site/resources/img/icon-dropdown.svg
+++ b/google-cloud-clients/src/site/resources/img/icon-dropdown.svg
@@ -1,7 +1,7 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/site/resources/img/icon-lang-dotnet.svg b/google-cloud-clients/src/site/resources/img/icon-lang-dotnet.svg
similarity index 100%
rename from src/site/resources/img/icon-lang-dotnet.svg
rename to google-cloud-clients/src/site/resources/img/icon-lang-dotnet.svg
diff --git a/src/site/resources/img/icon-lang-go.svg b/google-cloud-clients/src/site/resources/img/icon-lang-go.svg
similarity index 100%
rename from src/site/resources/img/icon-lang-go.svg
rename to google-cloud-clients/src/site/resources/img/icon-lang-go.svg
diff --git a/src/site/resources/img/icon-lang-java-duke-white.svg b/google-cloud-clients/src/site/resources/img/icon-lang-java-duke-white.svg
similarity index 100%
rename from src/site/resources/img/icon-lang-java-duke-white.svg
rename to google-cloud-clients/src/site/resources/img/icon-lang-java-duke-white.svg
diff --git a/src/site/resources/img/icon-lang-java-duke.svg b/google-cloud-clients/src/site/resources/img/icon-lang-java-duke.svg
similarity index 100%
rename from src/site/resources/img/icon-lang-java-duke.svg
rename to google-cloud-clients/src/site/resources/img/icon-lang-java-duke.svg
diff --git a/src/site/resources/img/icon-lang-nodejs.svg b/google-cloud-clients/src/site/resources/img/icon-lang-nodejs.svg
similarity index 98%
rename from src/site/resources/img/icon-lang-nodejs.svg
rename to google-cloud-clients/src/site/resources/img/icon-lang-nodejs.svg
index 24a4addc3c57..e7a2fe475c41 100644
--- a/src/site/resources/img/icon-lang-nodejs.svg
+++ b/google-cloud-clients/src/site/resources/img/icon-lang-nodejs.svg
@@ -1,16 +1,16 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/site/resources/img/icon-lang-php.svg b/google-cloud-clients/src/site/resources/img/icon-lang-php.svg
similarity index 100%
rename from src/site/resources/img/icon-lang-php.svg
rename to google-cloud-clients/src/site/resources/img/icon-lang-php.svg
diff --git a/src/site/resources/img/icon-lang-python.svg b/google-cloud-clients/src/site/resources/img/icon-lang-python.svg
similarity index 98%
rename from src/site/resources/img/icon-lang-python.svg
rename to google-cloud-clients/src/site/resources/img/icon-lang-python.svg
index bc4737703c35..d6da4a5d3592 100644
--- a/src/site/resources/img/icon-lang-python.svg
+++ b/google-cloud-clients/src/site/resources/img/icon-lang-python.svg
@@ -1,21 +1,21 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/site/resources/img/icon-lang-ruby.svg b/google-cloud-clients/src/site/resources/img/icon-lang-ruby.svg
similarity index 100%
rename from src/site/resources/img/icon-lang-ruby.svg
rename to google-cloud-clients/src/site/resources/img/icon-lang-ruby.svg
diff --git a/src/site/resources/img/icon-link-github.svg b/google-cloud-clients/src/site/resources/img/icon-link-github.svg
similarity index 99%
rename from src/site/resources/img/icon-link-github.svg
rename to google-cloud-clients/src/site/resources/img/icon-link-github.svg
index 2404f8b0be06..af74605fc6d1 100644
--- a/src/site/resources/img/icon-link-github.svg
+++ b/google-cloud-clients/src/site/resources/img/icon-link-github.svg
@@ -1,19 +1,19 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/site/resources/img/icon-link-package-manager.svg b/google-cloud-clients/src/site/resources/img/icon-link-package-manager.svg
similarity index 97%
rename from src/site/resources/img/icon-link-package-manager.svg
rename to google-cloud-clients/src/site/resources/img/icon-link-package-manager.svg
index 3a12655fe6f9..d9d77111a14b 100644
--- a/src/site/resources/img/icon-link-package-manager.svg
+++ b/google-cloud-clients/src/site/resources/img/icon-link-package-manager.svg
@@ -1,19 +1,19 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/site/resources/img/icon-link-stackoverflow.svg b/google-cloud-clients/src/site/resources/img/icon-link-stackoverflow.svg
similarity index 98%
rename from src/site/resources/img/icon-link-stackoverflow.svg
rename to google-cloud-clients/src/site/resources/img/icon-link-stackoverflow.svg
index e1a1f789a897..d59125875d35 100644
--- a/src/site/resources/img/icon-link-stackoverflow.svg
+++ b/google-cloud-clients/src/site/resources/img/icon-link-stackoverflow.svg
@@ -1,16 +1,16 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/site/resources/img/icon-menu.svg b/google-cloud-clients/src/site/resources/img/icon-menu.svg
similarity index 98%
rename from src/site/resources/img/icon-menu.svg
rename to google-cloud-clients/src/site/resources/img/icon-menu.svg
index 98d3e7073cde..a184966934d1 100644
--- a/src/site/resources/img/icon-menu.svg
+++ b/google-cloud-clients/src/site/resources/img/icon-menu.svg
@@ -1,11 +1,11 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/src/site/resources/img/icon-table-check.svg b/google-cloud-clients/src/site/resources/img/icon-table-check.svg
similarity index 98%
rename from src/site/resources/img/icon-table-check.svg
rename to google-cloud-clients/src/site/resources/img/icon-table-check.svg
index 7934bef97f06..3ad540204b97 100644
--- a/src/site/resources/img/icon-table-check.svg
+++ b/google-cloud-clients/src/site/resources/img/icon-table-check.svg
@@ -1,7 +1,7 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/site/resources/img/lang-bg.png b/google-cloud-clients/src/site/resources/img/lang-bg.png
similarity index 100%
rename from src/site/resources/img/lang-bg.png
rename to google-cloud-clients/src/site/resources/img/lang-bg.png
diff --git a/src/site/resources/img/logo-full.svg b/google-cloud-clients/src/site/resources/img/logo-full.svg
similarity index 99%
rename from src/site/resources/img/logo-full.svg
rename to google-cloud-clients/src/site/resources/img/logo-full.svg
index 3b84037fccc6..b70ddbbddaa0 100644
--- a/src/site/resources/img/logo-full.svg
+++ b/google-cloud-clients/src/site/resources/img/logo-full.svg
@@ -1,112 +1,112 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/site/resources/img/logo.svg b/google-cloud-clients/src/site/resources/img/logo.svg
similarity index 98%
rename from src/site/resources/img/logo.svg
rename to google-cloud-clients/src/site/resources/img/logo.svg
index 6c515095c5ad..385c7ff95349 100644
--- a/src/site/resources/img/logo.svg
+++ b/google-cloud-clients/src/site/resources/img/logo.svg
@@ -1,25 +1,25 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/src/site/resources/index.html b/google-cloud-clients/src/site/resources/index.html
similarity index 97%
rename from src/site/resources/index.html
rename to google-cloud-clients/src/site/resources/index.html
index 6eebe47daff6..a7be38cfb3dd 100644
--- a/src/site/resources/index.html
+++ b/google-cloud-clients/src/site/resources/index.html
@@ -77,12 +77,6 @@ google-cloud
Google Cloud Client Library for Java - an idiomatic, intuitive, and natural way for Java developers to integrate with Google Cloud Platform services, like Cloud Datastore and Cloud Storage.
-
Quickstart with Maven: add google-cloud to your pom.xml
-
<dependency>
- <groupId>com.google.cloud</groupId>
- <artifactId>google-cloud</artifactId>
- <version>{{SITE_VERSION}}</version>
-</dependency>
diff --git a/src/site/resources/js/main.js b/google-cloud-clients/src/site/resources/js/main.js
similarity index 100%
rename from src/site/resources/js/main.js
rename to google-cloud-clients/src/site/resources/js/main.js
diff --git a/src/site/resources/js/plugins.js b/google-cloud-clients/src/site/resources/js/plugins.js
similarity index 100%
rename from src/site/resources/js/plugins.js
rename to google-cloud-clients/src/site/resources/js/plugins.js
diff --git a/src/site/resources/js/vendor/highlight.pack.js b/google-cloud-clients/src/site/resources/js/vendor/highlight.pack.js
similarity index 100%
rename from src/site/resources/js/vendor/highlight.pack.js
rename to google-cloud-clients/src/site/resources/js/vendor/highlight.pack.js
diff --git a/src/site/resources/js/vendor/jquery-1.10.2.min.js b/google-cloud-clients/src/site/resources/js/vendor/jquery-1.10.2.min.js
similarity index 100%
rename from src/site/resources/js/vendor/jquery-1.10.2.min.js
rename to google-cloud-clients/src/site/resources/js/vendor/jquery-1.10.2.min.js
diff --git a/src/site/resources/js/vendor/modernizr-2.6.2.min.js b/google-cloud-clients/src/site/resources/js/vendor/modernizr-2.6.2.min.js
similarity index 100%
rename from src/site/resources/js/vendor/modernizr-2.6.2.min.js
rename to google-cloud-clients/src/site/resources/js/vendor/modernizr-2.6.2.min.js
diff --git a/src/site/resources/js/vendor/prettify.js b/google-cloud-clients/src/site/resources/js/vendor/prettify.js
similarity index 100%
rename from src/site/resources/js/vendor/prettify.js
rename to google-cloud-clients/src/site/resources/js/vendor/prettify.js
diff --git a/pom.xml b/pom.xml
index f568bb6d57aa..d743fdb89e22 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,5 +1,7 @@
-
+
4.0.0
com.google.api
google-cloud-java
diff --git a/src/site/site.xml b/src/site/site.xml
deleted file mode 100644
index 13981f041d2b..000000000000
--- a/src/site/site.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
- org.apache.maven.skins
- maven-fluido-skin
- 1.4
-
-
-
-
-
-
-
-
diff --git a/utilities/create_site.sh b/utilities/create_site.sh
deleted file mode 100755
index 980611ff2e3d..000000000000
--- a/utilities/create_site.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-set -e
-
-SITE_VERSION=$1
-SITE_VERSION_BASE=$(sed -r 's/([0-9]+\.[0-9]+\.[0-9]+).*/\1/' <<< "$SITE_VERSION")
-
-echo "Creating site for google-cloud-java $SITE_VERSION_BASE"
-
-if [ -z "$SITE_VERSION_BASE" ]; then
- echo "First arg (version) not provided, so we're exiting."
- exit 1
-fi
-
-git clone --branch gh-pages --single-branch https://github.com/GoogleCloudPlatform/google-cloud-java/ tmp_gh-pages
-mkdir -p tmp_gh-pages/$SITE_VERSION_BASE
-mvn site -Djava.util.logging.config.file=logging.properties
-mvn site:stage --quiet -Djava.util.logging.config.file=logging.properties -DtopSiteURL=https://googlecloudplatform.github.io/google-cloud-java
-
-rm -rf tmp_gh-pages/latest
-mkdir tmp_gh-pages/latest
-version_bases=(${SITE_VERSION_BASE} latest)
-for version_base in ${version_bases[@]}
-do
- cd tmp_gh-pages
- cp -r ../target/staging/*/* $version_base
- sed -i "s/{{SITE_VERSION}}/$SITE_VERSION/g" ${version_base}/index.html # Update "Quickstart with Maven" to reflect version change
- git add $version_base
- cd ..
-done
-
-cd tmp_gh-pages
-echo " " > index.html
-git add index.html
-echo "" > apidocs/index.html
-git add apidocs/index.html
-
-echo "Site generated under tmp_gh-pages/. The changes must be committed from that directory."
diff --git a/utilities/stage_release.sh b/utilities/stage_release.sh
deleted file mode 100755
index 2a5193fa0de8..000000000000
--- a/utilities/stage_release.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-set -e
-
-SITE_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -Ev '(^\[|\w+:)')
-echo "Used the maven-help-plugin to determine that the version is $SITE_VERSION"
-if [ -z "$SITE_VERSION" ]; then
- echo "Could not determine the version, so we're exiting."
- exit 1
-fi
-
-# Deploy the build artifacts to Sonatype
-./utilities/deploy.sh "$SITE_VERSION"
-
-if [ "${SITE_VERSION##*-}" != "SNAPSHOT" ]; then
- # Create website
- ./utilities/create_site.sh "$SITE_VERSION"
-
- cd tmp_gh-pages
- git commit --quiet -m "Added a new site for version $SITE_VERSION and updated the root directory's redirect. [ci skip]"
-fi
diff --git a/utilities/stage_sites.py b/utilities/stage_sites.py
new file mode 100644
index 000000000000..ef5852926225
--- /dev/null
+++ b/utilities/stage_sites.py
@@ -0,0 +1,56 @@
+# Copyright 2018 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# This scripts creates sites for `google-cloud-clients` and `google-api-grpc`
+# modules and commits (but does not push) them to gh-pages branch of
+# GoogleCloudPlatform/google-cloud-java github repository.
+
+# Usage:
+# python utilities/stage_sites.py
+
+import subprocess
+import sys
+
+
+def stage_sites(sites, gh_pages, git_url, top_site_url):
+ _run(['git', 'clone', '--branch', 'gh-pages', '--single-branch', git_url,
+ gh_pages])
+ _run(['mkdir', '-p', gh_pages])
+ for site in sites:
+ _create_site(site, gh_pages, top_site_url)
+ _run(['git', 'add', '.'], gh_pages)
+ _run(['git', 'commit', '-m',
+ "Regenerate documentation for %s. [ci skip]" % ', '.join(sites)],
+ gh_pages)
+
+
+def _create_site(site_name, gh_pages, top_site_url):
+ _run(['mvn', 'site'], site_name)
+ _run(['mvn', 'site:stage', '-q',
+ "-DtopSiteURL=%s/%s" % (top_site_url, site_name)],
+ site_name)
+ _run(['rm', '-rf', site_name], gh_pages)
+ _run(['cp', '-r', "%s/target/staging/site/%s" % (site_name, site_name),
+ gh_pages])
+
+
+def _run(command, cwd=None):
+ print("\033[1;36mExecute command:\033[0m %s" % ' '.join(command))
+ subprocess.check_call(command, cwd=cwd, stdout=sys.stdout, stderr=sys.stderr)
+
+
+if __name__ == '__main__':
+ stage_sites(['google-api-grpc', 'google-cloud-clients'], 'tmp_gh-pages',
+ 'https://github.com/GoogleCloudPlatform/google-cloud-java',
+ 'https://googlecloudplatform.github.io/google-cloud-java')