File tree Expand file tree Collapse file tree 17 files changed +83
-42
lines changed Expand file tree Collapse file tree 17 files changed +83
-42
lines changed Original file line number Diff line number Diff line change @@ -72,5 +72,5 @@ endpointsServer {
72
72
group = ' com.example.helloendpoints' // Generated output GroupId
73
73
version = ' 1' // Version in generated output
74
74
75
- sourceCompatibility = 1.8 // App Engine Standard uses Java 7
76
- targetCompatibility = 1.8 // App Engine Standard uses Java 7
75
+ sourceCompatibility = 1.8 // App Engine Standard uses Java 8
76
+ targetCompatibility = 1.8 // App Engine Standard uses Java 8
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ Copyright 2017 Google Inc.
32
32
</parent >
33
33
34
34
<!-- [START compiler] -->
35
- <properties > <!-- App Engine Standard currently requires Java 7 -->
35
+ <properties > <!-- App Engine Standard currently requires Java 8 -->
36
36
<maven .compiler.target>1.8</maven .compiler.target>
37
37
<maven .compiler.source>1.8</maven .compiler.source>
38
38
</properties >
Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ appengine { // App Engine tasks configuration
72
72
}
73
73
}
74
74
75
- sourceCompatibility = 1.7 // App Engine Standard uses Java 7
76
- targetCompatibility = 1.7 // App Engine Standard uses Java 7
75
+ sourceCompatibility = 1.8 // App Engine Standard uses Java 8
76
+ targetCompatibility = 1.8 // App Engine Standard uses Java 8
77
77
78
78
// this replaces the ${endpoints.project.id} in appengine-web.xml and web.xml
79
79
task replaceProjectId (type : Copy ) {
Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ appengine { // App Engine tasks configuration
68
68
}
69
69
}
70
70
71
- sourceCompatibility = 1.7 // App Engine Standard uses Java 7
72
- targetCompatibility = 1.7 // App Engine Standard uses Java 7
71
+ sourceCompatibility = 1.8 // App Engine Standard uses Java 8
72
+ targetCompatibility = 1.8 // App Engine Standard uses Java 8
73
73
74
74
// this replaces the ${endpoints.project.id} in appengine-web.xml and web.xml
75
75
task replaceProjectId (type : Copy ) {
Original file line number Diff line number Diff line change @@ -79,5 +79,5 @@ endpointsServer {
79
79
group = ' com.example.helloendpoints' // Generated output GroupId
80
80
version = ' 1' // Version in generated output
81
81
82
- sourceCompatibility = 1.7 // App Engine Standard uses Java 7
83
- targetCompatibility = 1.7 // App Engine Standard uses Java 7
82
+ sourceCompatibility = 1.8 // App Engine Standard uses Java 8
83
+ targetCompatibility = 1.8 // App Engine Standard uses Java 8
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ Copyright 2017 Google Inc.
33
33
34
34
35
35
<!-- [START compiler] -->
36
- <properties > <!-- App Engine Standard currently requires Java 7 -->
36
+ <properties > <!-- App Engine Standard currently requires Java 8 -->
37
37
<maven .compiler.target>1.8</maven .compiler.target>
38
38
<maven .compiler.source>1.8</maven .compiler.source>
39
39
</properties >
Original file line number Diff line number Diff line change @@ -58,5 +58,5 @@ appengine { // App Engine tasks configuration
58
58
group = ' com.example.appengine' // Generated output GroupId
59
59
version = ' 1.0-SNAPSHOT' // Version in generated output
60
60
61
- sourceCompatibility = 1.7 // App Engine Standard uses Java 7
62
- targetCompatibility = 1.7 // App Engine Standard uses Java 7
61
+ sourceCompatibility = 1.8 // App Engine Standard uses Java 8
62
+ targetCompatibility = 1.8 // App Engine Standard uses Java 8
Original file line number Diff line number Diff line change @@ -51,18 +51,26 @@ Copyright 2015 Google Inc.
51
51
<plugins >
52
52
<plugin >
53
53
<groupId >org.apache.maven.plugins</groupId >
54
- <version >3.3</version >
55
54
<artifactId >maven-compiler-plugin</artifactId >
55
+ <version >3.8.1</version >
56
56
<configuration >
57
- <source >1.7</source >
58
- <target >1.7</target >
57
+ <compilerArgs >
58
+ <arg >-XDcompilePolicy=simple</arg >
59
+ <arg >-Xplugin:ErrorProne</arg >
60
+ </compilerArgs >
61
+ <annotationProcessorPaths >
62
+ <path >
63
+ <groupId >com.google.errorprone</groupId >
64
+ <artifactId >error_prone_core</artifactId >
65
+ <version >2.3.3</version >
66
+ </path >
67
+ </annotationProcessorPaths >
59
68
</configuration >
60
69
</plugin >
61
- <!-- Parent POM defines ${appengine.sdk.version} (updates frequently). -->
62
70
<plugin >
63
71
<groupId >com.google.appengine</groupId >
64
72
<artifactId >appengine-maven-plugin</artifactId >
65
- <version >1.9.59 </version >
73
+ <version >1.9.76 </version >
66
74
</plugin >
67
75
</plugins >
68
76
</build >
Original file line number Diff line number Diff line change @@ -50,17 +50,26 @@ Copyright 2017 Google Inc.
50
50
<plugins >
51
51
<plugin >
52
52
<groupId >org.apache.maven.plugins</groupId >
53
- <version >3.3</version >
54
53
<artifactId >maven-compiler-plugin</artifactId >
54
+ <version >3.8.1</version >
55
55
<configuration >
56
- <source >1.7</source >
57
- <target >1.7</target >
56
+ <compilerArgs >
57
+ <arg >-XDcompilePolicy=simple</arg >
58
+ <arg >-Xplugin:ErrorProne</arg >
59
+ </compilerArgs >
60
+ <annotationProcessorPaths >
61
+ <path >
62
+ <groupId >com.google.errorprone</groupId >
63
+ <artifactId >error_prone_core</artifactId >
64
+ <version >2.3.3</version >
65
+ </path >
66
+ </annotationProcessorPaths >
58
67
</configuration >
59
68
</plugin >
60
69
<plugin >
61
70
<groupId >com.google.cloud.tools</groupId >
62
71
<artifactId >appengine-maven-plugin</artifactId >
63
- <version >1.3.1 </version >
72
+ <version >1.9.76 </version >
64
73
</plugin >
65
74
</plugins >
66
75
</build >
Original file line number Diff line number Diff line change @@ -63,11 +63,20 @@ Copyright 2015 Google Inc.
63
63
</plugin >
64
64
<plugin >
65
65
<groupId >org.apache.maven.plugins</groupId >
66
- <version >3.3</version >
67
66
<artifactId >maven-compiler-plugin</artifactId >
67
+ <version >3.8.1</version >
68
68
<configuration >
69
- <source >1.7</source >
70
- <target >1.7</target >
69
+ <compilerArgs >
70
+ <arg >-XDcompilePolicy=simple</arg >
71
+ <arg >-Xplugin:ErrorProne</arg >
72
+ </compilerArgs >
73
+ <annotationProcessorPaths >
74
+ <path >
75
+ <groupId >com.google.errorprone</groupId >
76
+ <artifactId >error_prone_core</artifactId >
77
+ <version >2.3.3</version >
78
+ </path >
79
+ </annotationProcessorPaths >
71
80
</configuration >
72
81
</plugin >
73
82
</plugins >
Original file line number Diff line number Diff line change 37
37
</parent >
38
38
39
39
<!-- [START compiler] -->
40
- <properties > <!-- App Engine Standard currently requires Java 7 -->
40
+ <properties > <!-- App Engine Standard currently requires Java 8 -->
41
41
<maven .compiler.target>1.8</maven .compiler.target>
42
42
<maven .compiler.source>1.8</maven .compiler.source>
43
43
</properties >
Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ Copyright 2015 Google Inc.
59
59
<version >3.3</version >
60
60
<artifactId >maven-compiler-plugin</artifactId >
61
61
<configuration >
62
- <source >1.7 </source >
63
- <target >1.7 </target >
62
+ <source >1.8 </source >
63
+ <target >1.8 </target >
64
64
</configuration >
65
65
</plugin >
66
66
</plugins >
Original file line number Diff line number Diff line change 31
31
</parent >
32
32
33
33
<prerequisites >
34
- <maven >3.0</maven >
34
+ <maven >3.1. 0</maven >
35
35
</prerequisites >
36
36
37
37
<properties >
120
120
<plugin >
121
121
<groupId >com.google.appengine</groupId >
122
122
<artifactId >appengine-maven-plugin</artifactId >
123
- <version >1.9.59 </version >
123
+ <version >1.9.76 </version >
124
124
<configuration >
125
125
<enableJarClasses >false</enableJarClasses >
126
126
<!-- Comment in the below snippet to bind to all IPs instead of just localhost -->
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ Copyright 2016 Google Inc.
22
22
<groupId >com.example.taskqueue</groupId >
23
23
<artifactId >taskqueue</artifactId >
24
24
25
+ <prerequisites >
26
+ <maven >3.1.0</maven >
27
+ </prerequisites >
25
28
<!--
26
29
The parent pom defines common style checks and testing strategies for our samples.
27
30
Removing or replacing it should not effect the execution of the samples in anyway.
@@ -75,6 +78,26 @@ Copyright 2016 Google Inc.
75
78
<!-- for hot reload of the web application-->
76
79
<outputDirectory >${project.build.directory} /${project.build.finalName} /WEB-INF/classes</outputDirectory >
77
80
<plugins >
81
+ <plugin >
82
+ <groupId >org.apache.maven.plugins</groupId >
83
+ <artifactId >maven-enforcer-plugin</artifactId >
84
+ <version >3.0.0-M2</version >
85
+ <executions >
86
+ <execution >
87
+ <id >enforce-maven</id >
88
+ <goals >
89
+ <goal >enforce</goal >
90
+ </goals >
91
+ <configuration >
92
+ <rules >
93
+ <requireMavenVersion >
94
+ <version >3.0</version >
95
+ </requireMavenVersion >
96
+ </rules >
97
+ </configuration >
98
+ </execution >
99
+ </executions >
100
+ </plugin >
78
101
<plugin >
79
102
<groupId >org.codehaus.mojo</groupId >
80
103
<artifactId >versions-maven-plugin</artifactId >
@@ -88,18 +111,10 @@ Copyright 2016 Google Inc.
88
111
</execution >
89
112
</executions >
90
113
</plugin >
91
- <plugin >
92
- <groupId >org.apache.maven.plugins</groupId >
93
- <artifactId >maven-compiler-plugin</artifactId >
94
- <configuration >
95
- <source >1.7</source >
96
- <target >1.7</target >
97
- </configuration >
98
- </plugin >
99
114
<plugin >
100
115
<groupId >com.google.appengine</groupId >
101
116
<artifactId >appengine-maven-plugin</artifactId >
102
- <version >1.9.59 </version >
117
+ <version >1.9.76 </version >
103
118
</plugin >
104
119
<plugin >
105
120
<groupId >com.google.appengine</groupId >
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ reuse an existing project by clicking on it.
59
59
in to the newly created VM instance.
60
60
61
61
1 . Code checkout instructions:
62
- 1 . Prerequisites: install [ Java 7 or Java 8 JDK] [ 2 ] , [ Git] [ 7 ] , and [ Maven] [ 8 ] .
62
+ 1 . Prerequisites: install [ Java 8 JDK] [ 2 ] , [ Git] [ 7 ] , and [ Maven] [ 8 ] .
63
63
You may need to set your ` JAVA_HOME ` environment variable as well.
64
64
* To install these prerequisites on a Linux (Debian or Ubuntu) based Compute Engine VM
65
65
instance, run these commands:
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ This directory contains sample code used in Google Cloud Datastore documentation
8
8
## Run the ` TaskList ` sample application.
9
9
10
10
1 . Ensure that you have:
11
- * Created a Google Developers Console project with the Datastore API enabled. Follow [ these instructions] ( https://cloud.google.com/docs/authentication#preparation ) to get your project set up.
11
+ * Created a Google Developers Console project with the Datastore API enabled. Follow [ these instructions] ( https://cloud.google.com/docs/authentication#preparation ) to get your project set up.
12
12
* Installed the Google Cloud SDK and run the following commands in command line: ` gcloud auth application-default login ` and ` gcloud config set project [YOUR PROJECT ID] ` .
13
- * Installed [ Maven] ( https://maven.apache.org/ ) and Java 7 (or above).
13
+ * Installed [ Maven] ( https://maven.apache.org/ ) and Java 8 (or above).
14
14
15
15
2 . Compile the program by typing ` mvn clean compile ` in command line.
16
16
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Copyright 2017 Google Inc.
30
30
<version >1.0.11</version >
31
31
</parent >
32
32
33
- <properties > <!-- App Engine Standard currently requires Java 7 -->
33
+ <properties > <!-- App Engine Standard currently requires Java 8 -->
34
34
<maven .compiler.target>1.8</maven .compiler.target>
35
35
<maven .compiler.source>1.8</maven .compiler.source>
36
36
</properties >
You can’t perform that action at this time.
0 commit comments