Skip to content

Commit 7389332

Browse files
authored
Disable ErrorProne for GAE Standard (#536)
1. Disable ErrorProne by adding a appengine/pom.xml 2. Make all appengine/* reference appengine/pom.xml 3. Fix some copyrights 4. Bump GAE to 1.9.49 5. OAuth 1 is no longer supported - remove test 6. Updated CONTRIBUTING.md
1 parent df58057 commit 7389332

File tree

53 files changed

+385
-266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+385
-266
lines changed

CONTRIBUTING.md

+16
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* [Contributor License Agreements](#Contributor-License-Agreements)
44
* [Contributing a Patch](#Contributing-a-Patch)
5+
* [Contributing a new sample](#Contributing-a-new-sample)
56
* [Build Tools](#build-tools)
67
* [Integration Testing](#testing)
78
* [Style](#Style)
@@ -37,6 +38,17 @@ accept your pull requests.
3738
1. Ensure that your code has an appropriate set of unit tests which all pass.
3839
1. Submit a pull request.
3940

41+
## Contributing a new sample
42+
43+
1. App Engine Standard samples all go into `/appengine` (java 7) or `/java8-appengine` (Java 8) (if your contributing a group of samples,
44+
please put the App Engine Standard sample into `/appengine` and provide a link in both `README.md`'s for
45+
the project for the additional sample.
46+
47+
1. App Engine Flexible samples all go into `/flexible`
48+
49+
1. Technology samples go into the project root.
50+
51+
4052
## Build Tools
4153

4254
All new samples should build and run integration tests with both [Maven](https://maven.apache.org/) and [Gradle](https://gradle.org/).
@@ -66,6 +78,10 @@ test {
6678
}
6779
```
6880

81+
### Keys and Secrets
82+
83+
Please contact a Java DPE for instructions before adding to Travis.
84+
6985
## Style
7086

7187
Samples in this repository follow the [Google Java Style Guide][java-style].

appengine/analytics/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright 2015 Google Inc. All Rights Reserved.
2+
Copyright 2015 Google Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -21,10 +21,10 @@
2121
<artifactId>appengine-analytics</artifactId>
2222

2323
<parent>
24-
<artifactId>doc-samples</artifactId>
24+
<artifactId>appengine-doc-samples</artifactId>
2525
<groupId>com.google.cloud</groupId>
2626
<version>1.0.0</version>
27-
<relativePath>../..</relativePath>
27+
<relativePath>..</relativePath>
2828
</parent>
2929
<!-- Parent POM defines ${appengine.sdk.version} (updates frequently). -->
3030

appengine/appidentity/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright 2015 Google Inc. All Rights Reserved.
2+
Copyright 2015 Google Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -22,9 +22,9 @@
2222

2323
<parent>
2424
<groupId>com.google.cloud</groupId>
25-
<artifactId>doc-samples</artifactId>
25+
<artifactId>appengine-doc-samples</artifactId>
2626
<version>1.0.0</version>
27-
<relativePath>../..</relativePath>
27+
<relativePath>..</relativePath>
2828
</parent>
2929

3030
<properties>

appengine/channel/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright 2015 Google Inc. All Rights Reserved.
2+
Copyright 2015 Google Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -21,9 +21,9 @@
2121
<artifactId>appengine-channel</artifactId>
2222
<parent>
2323
<groupId>com.google.cloud</groupId>
24-
<artifactId>doc-samples</artifactId>
24+
<artifactId>appengine-doc-samples</artifactId>
2525
<version>1.0.0</version>
26-
<relativePath>../..</relativePath>
26+
<relativePath>..</relativePath>
2727
</parent>
2828
<properties>
2929
<objectify.version>5.1.14</objectify.version>

appengine/cloudsql/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright 2016 Google Inc. All Rights Reserved.
2+
Copyright 2016 Google Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -21,10 +21,10 @@
2121
<artifactId>appengine-cloudsql</artifactId>
2222

2323
<parent>
24-
<artifactId>doc-samples</artifactId>
24+
<artifactId>appengine-doc-samples</artifactId>
2525
<groupId>com.google.cloud</groupId>
2626
<version>1.0.0</version>
27-
<relativePath>../..</relativePath>
27+
<relativePath>..</relativePath>
2828
</parent>
2929

3030
<!-- [START properties] -->

appengine/datastore/indexes-exploding/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright 2016 Google Inc. All Rights Reserved.
2+
Copyright 2016 Google Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -22,9 +22,9 @@
2222

2323
<parent>
2424
<groupId>com.google.cloud</groupId>
25-
<artifactId>doc-samples</artifactId>
25+
<artifactId>appengine-doc-samples</artifactId>
2626
<version>1.0.0</version>
27-
<relativePath>../../..</relativePath>
27+
<relativePath>../..</relativePath>
2828
</parent>
2929

3030
<dependencies>

appengine/datastore/indexes-perfect/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright 2016 Google Inc. All Rights Reserved.
2+
Copyright 2016 Google Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -22,9 +22,9 @@
2222

2323
<parent>
2424
<groupId>com.google.cloud</groupId>
25-
<artifactId>doc-samples</artifactId>
25+
<artifactId>appengine-doc-samples</artifactId>
2626
<version>1.0.0</version>
27-
<relativePath>../../..</relativePath>
27+
<relativePath>../..</relativePath>
2828
</parent>
2929

3030
<dependencies>

appengine/datastore/indexes/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright 2016 Google Inc. All Rights Reserved.
2+
Copyright 2016 Google Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -22,9 +22,9 @@
2222

2323
<parent>
2424
<groupId>com.google.cloud</groupId>
25-
<artifactId>doc-samples</artifactId>
25+
<artifactId>appengine-doc-samples</artifactId>
2626
<version>1.0.0</version>
27-
<relativePath>../../..</relativePath>
27+
<relativePath>../..</relativePath>
2828
</parent>
2929

3030
<dependencies>

appengine/datastore/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright 2016 Google Inc. All Rights Reserved.
2+
Copyright 2016 Google Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -22,9 +22,9 @@
2222

2323
<parent>
2424
<groupId>com.google.cloud</groupId>
25-
<artifactId>doc-samples</artifactId>
25+
<artifactId>appengine-doc-samples</artifactId>
2626
<version>1.0.0</version>
27-
<relativePath>../..</relativePath>
27+
<relativePath>..</relativePath>
2828
</parent>
2929

3030
<dependencies>

appengine/endpoints-frameworks-v2/backend/pom.xml

+3-18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright 2016 Google Inc. All Rights Reserved.
2+
Copyright 2016 Google Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -22,10 +22,10 @@
2222
<artifactId>echo</artifactId>
2323

2424
<parent>
25-
<artifactId>doc-samples</artifactId>
25+
<artifactId>appengine-doc-samples</artifactId>
2626
<groupId>com.google.cloud</groupId>
2727
<version>1.0.0</version>
28-
<relativePath>../../..</relativePath>
28+
<relativePath>../..</relativePath>
2929
</parent>
3030

3131
<properties>
@@ -106,21 +106,6 @@
106106
<!-- for hot reload of the web application-->
107107
<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
108108
<plugins>
109-
<plugin>
110-
<groupId>org.codehaus.mojo</groupId>
111-
<artifactId>versions-maven-plugin</artifactId>
112-
<version>2.2</version>
113-
<executions>
114-
<execution>
115-
<phase>compile</phase>
116-
<goals>
117-
<goal>display-dependency-updates</goal>
118-
<goal>display-plugin-updates</goal>
119-
</goals>
120-
</execution>
121-
</executions>
122-
</plugin>
123-
124109
<plugin>
125110
<groupId>org.apache.maven.plugins</groupId>
126111
<artifactId>maven-war-plugin</artifactId>

appengine/endpoints-frameworks-v2/discovery/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
32
<!--
43
Copyright 2017 Google Inc.
54
@@ -15,6 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1514
See the License for the specific language governing permissions and
1615
limitations under the License.
1716
-->
17+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1818
<modelVersion>4.0.0</modelVersion>
1919
<packaging>war</packaging>
2020
<version>1.0-SNAPSHOT</version>
@@ -23,10 +23,10 @@ limitations under the License.
2323
<artifactId>helloendpoints</artifactId>
2424

2525
<parent>
26-
<artifactId>doc-samples</artifactId>
26+
<artifactId>appengine-doc-samples</artifactId>
2727
<groupId>com.google.cloud</groupId>
2828
<version>1.0.0</version>
29-
<relativePath>../../..</relativePath>
29+
<relativePath>../..</relativePath>
3030
</parent>
3131

3232
<properties>

appengine/firebase-event-proxy/gae-firebase-event-proxy/pom.xml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<!--
2-
Copyright 2015 Google Inc. All Rights Reserved.
2+
Copyright 2015 Google Inc.
3+
34
Licensed under the Apache License, Version 2.0 (the "License");
45
you may not use this file except in compliance with the License.
56
You may obtain a copy of the License at
67
http://www.apache.org/licenses/LICENSE-2.0
8+
79
Unless required by applicable law or agreed to in writing, software
810
distributed under the License is distributed on an "AS IS" BASIS,
911
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -20,9 +22,9 @@
2022

2123
<parent>
2224
<groupId>com.google.cloud</groupId>
23-
<artifactId>doc-samples</artifactId>
25+
<artifactId>appengine-doc-samples</artifactId>
2426
<version>1.0.0</version>
25-
<relativePath>../../..</relativePath>
27+
<relativePath>../..</relativePath>
2628
</parent>
2729

2830
<properties>

appengine/firebase-tictactoe/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright 2015 Google Inc. All Rights Reserved.
2+
Copyright 2015 Google Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -21,9 +21,9 @@
2121
<artifactId>appengine-firebase-tictactoe</artifactId>
2222
<parent>
2323
<groupId>com.google.cloud</groupId>
24-
<artifactId>doc-samples</artifactId>
24+
<artifactId>appengine-doc-samples</artifactId>
2525
<version>1.0.0</version>
26-
<relativePath>../..</relativePath>
26+
<relativePath>..</relativePath>
2727
</parent>
2828
<properties>
2929
<objectify.version>5.1.14</objectify.version>

appengine/guestbook-cloud-datastore/pom.xml

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Copyright 2016 Google Inc.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
217
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
318
xmlns="http://maven.apache.org/POM/4.0.0"
419
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
@@ -14,9 +29,9 @@
1429
</properties>
1530
<parent>
1631
<groupId>com.google.cloud</groupId>
17-
<artifactId>doc-samples</artifactId>
32+
<artifactId>appengine-doc-samples</artifactId>
1833
<version>1.0.0</version>
19-
<relativePath>../..</relativePath>
34+
<relativePath>..</relativePath>
2035
</parent>
2136

2237
<!-- [START set_versions] -->

appengine/guestbook-objectify/pom.xml

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Copyright 2015 Google Inc.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
217
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
318

419
<modelVersion>4.0.0</modelVersion>
@@ -13,9 +28,9 @@
1328
</properties>
1429
<parent>
1530
<groupId>com.google.cloud</groupId>
16-
<artifactId>doc-samples</artifactId>
31+
<artifactId>appengine-doc-samples</artifactId>
1732
<version>1.0.0</version>
18-
<relativePath>../..</relativePath>
33+
<relativePath>..</relativePath>
1934
</parent>
2035

2136
<!-- [START set_versions] -->

appengine/helloworld-new-plugins/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright 2015 Google Inc. All Rights Reserved.
2+
Copyright 2015 Google Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -30,9 +30,9 @@ Copyright 2015 Google Inc. All Rights Reserved.
3030

3131
<parent>
3232
<groupId>com.google.cloud</groupId>
33-
<artifactId>doc-samples</artifactId>
33+
<artifactId>appengine-doc-samples</artifactId>
3434
<version>1.0.0</version>
35-
<relativePath>../..</relativePath>
35+
<relativePath>..</relativePath>
3636
</parent>
3737

3838
<dependencies>

0 commit comments

Comments
 (0)