Skip to content

Commit 5680a0a

Browse files
committed
Addressing auto-review comments and taking comments from previous PR #10193
1 parent 58b326a commit 5680a0a

File tree

13 files changed

+31
-34
lines changed

13 files changed

+31
-34
lines changed

appengine-java25/ee11/analytics/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Google Analytics sample for Google App Engine
22

3-
<a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples&page=editor&open_in_editor=appengine-java21/analytics/README.md">
3+
<a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples&page=editor&open_in_editor=appengine-java25/ee11/analytics/README.md">
44
<img alt="Open in Cloud Shell" src ="https://gstatic.com/cloudssh/images/open-btn.png"></a>
55

66
Integrating App Engine with Google Analytics using EE11.

appengine-java25/ee11/analytics/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
<dependency>
7373
<groupId>jakarta.servlet</groupId>
7474
<artifactId>jakarta.servlet-api</artifactId>
75-
<version>6.0.0</version>
75+
<version>6.1.0</version>
7676
<type>jar</type>
7777
<scope>provided</scope>
7878
</dependency>

appengine-java25/ee11/analytics/src/main/java/com/example/appengine/analytics/AnalyticsServlet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package com.example.appengine.analytics;
1818

19-
// [START gae_java21_analytics_track]
19+
// [START gae_java25_ee11_analytics_track]
2020
import com.google.appengine.api.urlfetch.URLFetchService;
2121
import com.google.appengine.api.urlfetch.URLFetchServiceFactory;
2222
import java.io.IOException;
@@ -67,4 +67,4 @@ public void doGet(HttpServletRequest req, HttpServletResponse resp)
6767
resp.getWriter().println("Event tracked.");
6868
}
6969
}
70-
// [END gae_java21_analytics_track]
70+
// [END gae_java25_ee11_analytics_track]

appengine-java25/ee11/analytics/src/main/webapp/WEB-INF/web.xml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
limitations under the License.
1414
-->
1515
<!-- [END_EXCLUDE] -->
16-
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
17-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18-
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
19-
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
20-
<welcome-file-list>
21-
<welcome-file>analytics</welcome-file>
22-
</welcome-file-list>
16+
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://jakarta.ee/xml/ns/jakartaee"
17+
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_6_1.xsd"
18+
version="6.1">
19+
<welcome-file-list>
20+
<welcome-file>analytics</welcome-file>
21+
</welcome-file-list>
2322
</web-app>

appengine-java25/ee8/analytics/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Google Analytics sample for Google App Engine
22

3-
<a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples&page=editor&open_in_editor=appengine-java21/analytics/README.md">
3+
<a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples&page=editor&open_in_editor=appengine-java25/ee8/analytics/README.md">
44
<img alt="Open in Cloud Shell" src ="https://gstatic.com/cloudssh/images/open-btn.png"></a>
55

66
Integrating App Engine with Google Analytics using EE8.

appengine-java25/ee8/analytics/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<properties>
3535
<maven.compiler.target>25</maven.compiler.target>
3636
<maven.compiler.source>25</maven.compiler.source>
37-
<appengine.sdk.version>2.0.29</appengine.sdk.version>
37+
<appengine.sdk.version>3.0.1</appengine.sdk.version>
3838
</properties>
3939

4040
<dependencyManagement>
@@ -72,7 +72,7 @@
7272
<dependency>
7373
<groupId>javax.servlet</groupId>
7474
<artifactId>javax.servlet-api</artifactId>
75-
<version>3.1.0</version>
75+
<version>4.0.1</version>
7676
<type>jar</type>
7777
<scope>provided</scope>
7878
</dependency>
@@ -128,7 +128,7 @@
128128
<plugin>
129129
<groupId>com.google.cloud.tools</groupId>
130130
<artifactId>appengine-maven-plugin</artifactId>
131-
<version>2.7.0</version>
131+
<version>2.8.3</version>
132132
<configuration>
133133
<projectId>GCLOUD_CONFIG</projectId>
134134
<version>analytics</version>

appengine-java25/ee8/analytics/src/main/java/com/example/appengine/analytics/AnalyticsServlet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package com.example.appengine.analytics;
1818

19-
// [START gae_java21_analytics_track]
19+
// [START gae_java25_ee8_analytics_track]
2020
import com.google.appengine.api.urlfetch.URLFetchService;
2121
import com.google.appengine.api.urlfetch.URLFetchServiceFactory;
2222
import java.io.IOException;
@@ -67,4 +67,4 @@ public void doGet(HttpServletRequest req, HttpServletResponse resp)
6767
resp.getWriter().println("Event tracked.");
6868
}
6969
}
70-
// [END gae_java21_analytics_track]
70+
// [END gae_java25_ee8_analytics_track]

appengine-java25/ee8/analytics/src/main/webapp/WEB-INF/appengine-web.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
1717
<runtime>java25</runtime>
1818
<app-engine-apis>true</app-engine-apis>
19-
<service>appengine-analytics-j25-ee9</service>
19+
<service>appengine-analytics-j25-ee8</service>
2020
<system-properties>
2121
<property name="appengine.use.EE8" value="true"/>
2222
</system-properties>

appengine-java25/ee8/analytics/src/main/webapp/WEB-INF/web.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
1717
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1818
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
19-
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
19+
http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" version="4.0">
2020
<welcome-file-list>
2121
<welcome-file>analytics</welcome-file>
2222
</welcome-file-list>

appengine-java25/helloworld/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
HelloWorld for App Engine Standard (Java 21)
1+
HelloWorld for App Engine Standard (Java 25)
22
============================
33

44
This sample demonstrates how to deploy an application on Google App Engine.
@@ -9,7 +9,7 @@ detailed instructions.
99
[ae-docs]: https://cloud.google.com/appengine/docs/java/
1010

1111

12-
* [Java 21](https://www.oracle.com/java/technologies/downloads/)
12+
* [Java 25](https://www.oracle.com/java/technologies/downloads/)
1313
* [Maven](https://maven.apache.org/download.cgi) (at least 3.5)
1414
* [Google Cloud SDK](https://cloud.google.com/sdk/) (aka gcloud)
1515

@@ -34,7 +34,7 @@ with your Google Cloud Project Id:
3434
<plugin>
3535
<groupId>com.google.cloud.tools</groupId>
3636
<artifactId>appengine-maven-plugin</artifactId>
37-
<version>2.8.0</version>
37+
<version>2.8.3</version>
3838
<configuration>
3939
<projectId>myProjectId</projectId>
4040
<version>GCLOUD_CONFIG</version>
@@ -74,7 +74,7 @@ to (`src/main/test/...`). The following resources are quite useful:
7474

7575
./gradlew appengineRun
7676

77-
To use vist: http://localhost:8080/
77+
To use visit: http://localhost:8080/
7878

7979
### Deploying
8080

0 commit comments

Comments
 (0)