From 680b9e01eb0b3611359aee8d9fae099c42f0a041 Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Wed, 16 Mar 2016 11:50:51 -0700 Subject: [PATCH] Apply shared checkstyles to all samples. We use git submodules, so to check out all the code for `java-docs-samples`, we need to clone with the `--recursive` flag. ``` git clone --recursive git@github.com:GoogleCloudPlatform/java-docs-samples.git ``` To check out the directory in an already-cloned repo, run: ``` git submodule update --init --recursive ``` --- .gitmodules | 3 + google-checks.xml | 201 ---------------------------------------------- java-repo-tools | 1 + pom.xml | 55 ++----------- 4 files changed, 12 insertions(+), 248 deletions(-) create mode 100644 .gitmodules delete mode 100644 google-checks.xml create mode 160000 java-repo-tools diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000000..36775c57a56 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "java-repo-tools"] + path = java-repo-tools + url = https://github.com/GoogleCloudPlatform/java-repo-tools.git diff --git a/google-checks.xml b/google-checks.xml deleted file mode 100644 index e567fc7f8d3..00000000000 --- a/google-checks.xml +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java-repo-tools b/java-repo-tools new file mode 160000 index 00000000000..5c9a3169e1e --- /dev/null +++ b/java-repo-tools @@ -0,0 +1 @@ +Subproject commit 5c9a3169e1ee8fd471c0fd7501b50e1b2bc16773 diff --git a/pom.xml b/pom.xml index 9bc94b812dd..ee71ff00948 100644 --- a/pom.xml +++ b/pom.xml @@ -8,10 +8,17 @@ doc-samples pom + + + com.google.cloud + shared-configuration + 1.0.0 + java-repo-tools + + 1.9.32 1 - UTF-8 1.19.0 1.19.0 1.7 @@ -52,52 +59,6 @@ unittests - - - - org.apache.maven.plugins - maven-checkstyle-plugin - 2.17 - - google-checks.xml - true - true - true - - - check - - - - org.eluder.coveralls - coveralls-maven-plugin - 3.1.0 - - - ${basedir}/target/coverage.xml - - - - - org.codehaus.mojo - cobertura-maven-plugin - 2.6 - - ${basedir}/target - - xml - html - - xml - 256m - - true - - - - - -