Skip to content

Commit 97a4342

Browse files
committed
Fixing PR comments
1 parent eda1ac6 commit 97a4342

File tree

11 files changed

+49
-36
lines changed

11 files changed

+49
-36
lines changed

.kokoro/tests/run_test_java.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ SCRIPT_DIR="$(dirname $0)/"
2020

2121
# Fail the tests if no Java version was found.
2222
POM_JAVA=$(grep -oP '(?<=<maven.compiler.target>).*?(?=</maven.compiler.target>)' pom.xml)
23-
ALLOWED_VERSIONS=("1.8" "11" "17" "21")
23+
ALLOWED_VERSIONS=("1.8" "11" "17" "21", "25")
2424
# shellcheck disable=SC2199
2525
# shellcheck disable=SC2076
2626
if [[ "$POM_JAVA" = "" ]] || [[ ! " ${ALLOWED_VERSIONS[*]} " =~ " ${POM_JAVA} " ]]; then

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
@@ -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>

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_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_analytics_track]

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
limitations under the License.
1414
-->
1515
<!-- [END_EXCLUDE] -->
16-
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
16+
<web-app xmlns="https://jakarta.ee/xml/ns/jakartaee"
1717
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>
18+
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd"
19+
version="6.0">
20+
<welcome-file-list>
21+
<welcome-file>analytics</welcome-file>
22+
</welcome-file-list>
2323
</web-app>

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

appengine-java25/helloworld/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ sourceSets {
5353
}
5454

5555
dependencies {
56-
implementation 'com.google.appengine:appengine-api-1.0-sdk:2.0.30'
56+
implementation 'com.google.appengine:appengine-api-1.0-sdk:3.0.1'
5757
implementation 'jakarta.servlet:jakarta.servlet-api:6.1.0'
5858

5959
// Test Dependencies
60-
testImplementation 'com.google.appengine:appengine-testing:2.0.30'
61-
testImplementation 'com.google.appengine:appengine-api-stubs:2.0.30'
62-
testImplementation 'com.google.appengine:appengine-tools-sdk:2.0.30'
60+
testImplementation 'com.google.appengine:appengine-testing:3.0.1'
61+
testImplementation 'com.google.appengine:appengine-api-stubs:3.0.1'
62+
testImplementation 'com.google.appengine:appengine-tools-sdk:3.0.1'
6363

6464
testImplementation 'com.google.truth:truth:1.1.5'
6565
testImplementation 'junit:junit:4.13.2'

appengine-java25/helloworld/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<dependency>
4141
<groupId>com.google.appengine</groupId>
4242
<artifactId>appengine-api-1.0-sdk</artifactId>
43-
<version>2.0.23</version>
43+
<version>3.0.1</version>
4444
</dependency>
4545
<dependency>
4646
<groupId>jakarta.servlet</groupId>
@@ -102,7 +102,7 @@
102102
<plugin>
103103
<groupId>com.google.cloud.tools</groupId>
104104
<artifactId>appengine-maven-plugin</artifactId>
105-
<version>2.8.0</version>
105+
<version>2.8.3</version>
106106
<configuration>
107107
<!-- can be set w/ -DprojectId=myProjectId on command line -->
108108
<projectId>myProjectId</projectId>

appengine-java25/helloworld/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ plugins {
2929
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
3030
}
3131

32-
rootProject.name = 'helloworld'
32+
rootProject.name = 'helloworld'
Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- [START_EXCLUDE] -->
3+
<!--
4+
Copyright 2015 Google LLC
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+
http://www.apache.org/licenses/LICENSE-2.0
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.
14+
-->
15+
<!-- [END_EXCLUDE] -->
216
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
317
<runtime>java25</runtime>
418
<app-engine-apis>true</app-engine-apis>
5-
</appengine-web-app>
19+
</appengine-web-app>
20+

0 commit comments

Comments
 (0)