Skip to content

Commit 014079d

Browse files
author
Bill Prin
committed
Add checkstyle plugin
Also made root pom parent pom of submodules which was supposed to go into the last commit
1 parent f606873 commit 014079d

File tree

3 files changed

+41
-5
lines changed

3 files changed

+41
-5
lines changed

cloud-storage/xml-api/cmdline-sample/pom.xml

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project>
3+
4+
<parent>
5+
<artifactId>doc-samples</artifactId>
6+
<groupId>com.google.cloud</groupId>
7+
<version>1.0.0</version>
8+
<relativePath>../..</relativePath>
9+
</parent>
10+
11+
312
<modelVersion>4.0.0</modelVersion>
413
<groupId>com.google.apis-samples</groupId>
514
<artifactId>storage-cmd-line-sample</artifactId>

cloud-storage/xml-api/serviceaccount-appengine-sample/pom.xml

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4+
45
<parent>
5-
<groupId>com.google</groupId>
6-
<artifactId>google</artifactId>
7-
<version>5</version>
6+
<artifactId>doc-samples</artifactId>
7+
<groupId>com.google.cloud</groupId>
8+
<version>1.0.0</version>
9+
<relativePath>../..</relativePath>
810
</parent>
11+
912
<groupId>com.google.apis-samples</groupId>
1013
<artifactId>serviceaccounts-appengine-sample</artifactId>
1114
<version>1.0.0</version>
@@ -108,14 +111,14 @@
108111
</plugins>
109112
</build>
110113
<dependencies>
111-
114+
112115
<!-- Google App Engine SDK -->
113116
<dependency>
114117
<groupId>com.google.appengine</groupId>
115118
<artifactId>appengine-api-1.0-sdk</artifactId>
116119
<version>${project.appengine.version}</version>
117120
</dependency>
118-
121+
119122
<dependency>
120123
<groupId>com.google.api-client</groupId>
121124
<artifactId>google-api-client-appengine</artifactId>

pom.xml

+24
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,32 @@
2222
<module>taskqueue/deferred</module>
2323
<module>unittests</module>
2424
<module>bigquery</module>
25+
<module>cloud-storage/xml-api/cmdline-sample</module>
26+
<module>cloud-storage/xml-api/serviceaccount-appengine-sample</module>
2527
</modules>
2628

29+
<build>
30+
<plugins>
31+
<plugin>
32+
<groupId>org.apache.maven.plugins</groupId>
33+
<artifactId>maven-checkstyle-plugin</artifactId>
34+
<version>2.9.1</version>
35+
<executions>
36+
<execution>
37+
<id>checkstyle</id>
38+
<phase>validate</phase>
39+
<goals>
40+
<goal>check</goal>
41+
</goals>
42+
<configuration>
43+
<failOnViolation>true</failOnViolation>
44+
</configuration>
45+
</execution>
46+
</executions>
47+
</plugin>
48+
</plugins>
49+
</build>
50+
2751
<dependencyManagement>
2852
<dependencies>
2953
<!-- Compile/runtime dependencies -->

0 commit comments

Comments
 (0)