Skip to content

Commit 680b9e0

Browse files
committed
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 [email protected]:GoogleCloudPlatform/java-docs-samples.git ``` To check out the directory in an already-cloned repo, run: ``` git submodule update --init --recursive ```
1 parent 11adc54 commit 680b9e0

File tree

4 files changed

+12
-248
lines changed

4 files changed

+12
-248
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "java-repo-tools"]
2+
path = java-repo-tools
3+
url = https://github.com/GoogleCloudPlatform/java-repo-tools.git

google-checks.xml

-201
This file was deleted.

java-repo-tools

Submodule java-repo-tools added at 5c9a316

pom.xml

+8-47
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,17 @@
88
<artifactId>doc-samples</artifactId>
99
<packaging>pom</packaging>
1010

11+
<!-- Parent POM defines common plugins and properties. -->
12+
<parent>
13+
<groupId>com.google.cloud</groupId>
14+
<artifactId>shared-configuration</artifactId>
15+
<version>1.0.0</version>
16+
<relativePath>java-repo-tools</relativePath>
17+
</parent>
18+
1119
<properties>
1220
<appengine.sdk.version>1.9.32</appengine.sdk.version>
1321
<appengine.app.version>1</appengine.app.version>
14-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1522
<project.http.version>1.19.0</project.http.version>
1623
<project.oauth.version>1.19.0</project.oauth.version>
1724
<maven.compiler.target>1.7</maven.compiler.target>
@@ -52,52 +59,6 @@
5259
<module>unittests</module>
5360
</modules>
5461

55-
<build>
56-
<plugins>
57-
<plugin>
58-
<groupId>org.apache.maven.plugins</groupId>
59-
<artifactId>maven-checkstyle-plugin</artifactId>
60-
<version>2.17</version>
61-
<configuration>
62-
<configLocation>google-checks.xml</configLocation>
63-
<consoleOutput>true</consoleOutput>
64-
<failOnViolation>true</failOnViolation>
65-
<failsOnError>true</failsOnError>
66-
</configuration>
67-
<executions>
68-
<execution><goals><goal>check</goal></goals></execution>
69-
</executions>
70-
</plugin>
71-
<plugin>
72-
<groupId>org.eluder.coveralls</groupId>
73-
<artifactId>coveralls-maven-plugin</artifactId>
74-
<version>3.1.0</version>
75-
<configuration>
76-
<coberturaReports>
77-
<coberturaReport>${basedir}/target/coverage.xml</coberturaReport>
78-
</coberturaReports>
79-
</configuration>
80-
</plugin>
81-
<plugin>
82-
<groupId>org.codehaus.mojo</groupId>
83-
<artifactId>cobertura-maven-plugin</artifactId>
84-
<version>2.6</version>
85-
<configuration>
86-
<outputDirectory>${basedir}/target</outputDirectory>
87-
<formats>
88-
<format>xml</format>
89-
<format>html</format>
90-
</formats>
91-
<format>xml</format>
92-
<maxmem>256m</maxmem>
93-
<!-- aggregated reports for multi-module projects -->
94-
<aggregate>true</aggregate>
95-
</configuration>
96-
</plugin>
97-
</plugins>
98-
99-
</build>
100-
10162
<dependencyManagement>
10263
<dependencies>
10364
<!-- Compile/runtime dependencies -->

0 commit comments

Comments
 (0)