Skip to content

Commit

Permalink
Update to latest repo-tools (#774)
Browse files Browse the repository at this point in the history
* Update to latest repo-tools

1. check style is no longer stops us, but there are a bunch of failures
we should fix.
2. Broke out compute & flex pom.xml’s so that they exist.
3. Make more project include the parent pom.

* fix a few things...

Still broken are:
appengine-guestbook-cloud-datastore-j8
iap-samples
cloud-logging-samples
vision-landmark-detection
  • Loading branch information
lesv authored Jul 31, 2017
1 parent f99f1e6 commit 3605324
Show file tree
Hide file tree
Showing 34 changed files with 182 additions and 119 deletions.
1 change: 1 addition & 0 deletions appengine-java8/firebase-tictactoe/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<version>1.0-SNAPSHOT</version>
<groupId>com.example.appengine</groupId>
<artifactId>appengine-firebase-tictactoe-j8</artifactId>

<parent>
<groupId>com.google.cloud</groupId>
<artifactId>appengine-java8-samples</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
Expand Down Expand Up @@ -147,6 +148,7 @@ public LowLevelHttpResponse execute() throws IOException {
eq("PATCH"), Matchers.matches(FIREBASE_DB_URL + "/channels/[\\w-]+.json$"));
}

@Ignore // TODO: this wasn't running, and I've turned it off.
public void doPost_notMyTurn_move() throws Exception {
// Insert a game
Objectify ofy = ObjectifyService.ofy();
Expand Down
15 changes: 5 additions & 10 deletions compute/cmdline/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,14 @@ limitations under the License.
<!-- Parent POM defines common plugins and properties. -->
<parent>
<groupId>com.google.cloud</groupId>
<artifactId>doc-samples</artifactId>
<artifactId>compute</artifactId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
Expand All @@ -58,6 +51,7 @@ limitations under the License.
</systemProperties>
</configuration>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
Expand All @@ -73,6 +67,7 @@ limitations under the License.
</execution>
</executions>
</plugin>

</plugins>
<finalName>${project.artifactId}-${project.version}</finalName>
</build>
Expand Down
15 changes: 3 additions & 12 deletions compute/error-reporting/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,12 @@
<groupId>com.example.compute</groupId>
<artifactId>compute-error-reporting</artifactId>

<!-- TODO: Use common parent after fixing checkstyle errors.
https://github.com/GoogleCloudPlatform/java-docs-samples/issues/298
<parent>
<artifactId>doc-samples</artifactId>
<artifactId>compute</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>
-->

<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<maven-assembly-plugin-version>3.0.0</maven-assembly-plugin-version>
</properties>

<dependencies>
<!-- [START dependencies] -->
Expand All @@ -49,7 +40,7 @@
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven-assembly-plugin-version}</version>
<version>3.0.0</version>
<executions>
<execution>
<phase>package</phase>
Expand Down
5 changes: 3 additions & 2 deletions compute/mailjet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
<version>1.0-SNAPSHOT</version>
<groupId>com.example.compute</groupId>
<artifactId>compute-mailjet</artifactId>

<parent>
<groupId>com.google.cloud</groupId>
<artifactId>doc-samples</artifactId>
<artifactId>compute</artifactId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>

<properties>
Expand Down
39 changes: 39 additions & 0 deletions compute/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!--
Copyright 2017 Google Inc.
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.
-->
<project>
<modelVersion>4.0.0</modelVersion>
<version>1.0.0</version>

<groupId>com.google.cloud</groupId>
<artifactId>compute</artifactId>
<packaging>pom</packaging>

<!-- Parent POM defines common plugins and properties. -->
<parent>
<artifactId>doc-samples</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>..</relativePath>
</parent>

<modules>
<module>cmdline</module>
<module>error-reporting</module>
<module>mailjet</module>
<module>sendgrid</module>
</modules>

</project>
15 changes: 3 additions & 12 deletions compute/sendgrid/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,12 @@
<groupId>com.example.compute</groupId>
<artifactId>compute-sendgrid</artifactId>

<!-- TODO: Use common parent after fixing checkstyle errors.
https://github.com/GoogleCloudPlatform/java-docs-samples/issues/298
<parent>
<artifactId>doc-samples</artifactId>
<artifactId>compute</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>
-->

<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<maven-assembly-plugin-version>3.0.0</maven-assembly-plugin-version>
</properties>

<dependencies>
<!-- [START dependencies] -->
Expand All @@ -49,7 +40,7 @@
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven-assembly-plugin-version}</version>
<version>3.0.0</version>
<executions>
<execution>
<phase>package</phase>
Expand Down
7 changes: 2 additions & 5 deletions flexible/analytics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,13 @@
<artifactId>flexible-analytics</artifactId>

<parent>
<artifactId>doc-samples</artifactId>
<artifactId>appengine-flexible</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>

<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>

<appengine.maven.plugin>1.3.1</appengine.maven.plugin>
<jetty>9.4.4.v20170414</jetty>

Expand Down
4 changes: 2 additions & 2 deletions flexible/async-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
<packaging>war</packaging>

<parent>
<artifactId>doc-samples</artifactId>
<artifactId>appengine-flexible</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>

<properties>
Expand Down
2 changes: 0 additions & 2 deletions flexible/cloudsql/.gitignore

This file was deleted.

4 changes: 2 additions & 2 deletions flexible/cloudsql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
<artifactId>flexible-cloudsql</artifactId>

<parent>
<artifactId>doc-samples</artifactId>
<artifactId>appengine-flexible</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>

<!-- [START properties] -->
Expand Down
4 changes: 2 additions & 2 deletions flexible/cloudstorage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
<artifactId>flexible-cloudstorage</artifactId>

<parent>
<artifactId>doc-samples</artifactId>
<artifactId>appengine-flexible</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions flexible/cron/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
<artifactId>managed-vms-cron</artifactId>

<parent>
<artifactId>doc-samples</artifactId>
<artifactId>appengine-flexible</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions flexible/datastore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
<artifactId>flexible-datastore</artifactId>

<parent>
<artifactId>doc-samples</artifactId>
<artifactId>appengine-flexible</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions flexible/disk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
<artifactId>flexible-disk</artifactId>

<parent>
<artifactId>doc-samples</artifactId>
<artifactId>appengine-flexible</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions flexible/endpoints/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<artifactId>flexible-endpoints</artifactId>

<parent>
<artifactId>doc-samples</artifactId>
<artifactId>appengine-flexible</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions flexible/errorreporting/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
<artifactId>flexible-error-reporting</artifactId>

<parent>
<artifactId>doc-samples</artifactId>
<artifactId>appengine-flexible</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions flexible/extending-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
<artifactId>extendingruntime</artifactId>

<parent>
<artifactId>doc-samples</artifactId>
<artifactId>appengine-flexible</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions flexible/helloworld/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
<artifactId>flexible-helloworld</artifactId>

<parent>
<artifactId>doc-samples</artifactId>
<artifactId>appengine-flexible</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions flexible/mailgun/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
<artifactId>mailgun</artifactId>

<parent>
<artifactId>doc-samples</artifactId>
<artifactId>appengine-flexible</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions flexible/mailjet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

<parent>
<groupId>com.google.cloud</groupId>
<artifactId>doc-samples</artifactId>
<artifactId>appengine-flexible</artifactId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions flexible/memcache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
<artifactId>memcache</artifactId>

<parent>
<artifactId>doc-samples</artifactId>
<artifactId>appengine-flexible</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>../..</relativePath>
<relativePath>..</relativePath>
</parent>

<properties>
Expand Down
Loading

0 comments on commit 3605324

Please sign in to comment.