-
Notifications
You must be signed in to change notification settings - Fork 2.9k
chore:upgrade java8 to java21 for gaeinfo folder #10164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Alesvoy
wants to merge
10
commits into
GoogleCloudPlatform:main
Choose a base branch
from
Alesvoy:abutron-chore-migrate-java8-to-java21-gaeinfo
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
79a6e20
chore:upgrade java8 to java21 for gaeinfo folder
a383721
chore:upgrade java8 to java21 for gaeinfo folder
aa1f234
chore:upgrade java8 to java21 for gaeinfo folder
307ce06
chore:upgrade java8 to java21 for gaeinfo folder
b9506df
chore:upgrade java8 to java21 for gaeinfo folder
378947c
chore:upgrade java8 to java21 for firebase-backend folder
6f68097
chore:upgrade java8 to java21 for gaeinfo folder
f0d6f15
chore:upgrade java8 to java21 for gaeinfo folder
bd0aa77
chore:upgrade java8 to java21 for gaeinfo folder
8bf4f4d
chore:upgrade java8 to java21 for gaeinfo folder
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Google App Engine Information | ||
|
||
<a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples&page=editor&open_in_editor=appengine-java8/gaeinfo/README.md"> | ||
<img alt="Open in Cloud Shell" src ="http://gstatic.com/cloudssh/images/open-btn.png"></a> | ||
|
||
This sample displays what's going on in your app. It dumps the environment and lots more. | ||
|
||
See the [Google App Engine standard environment documentation][ae-docs] for more | ||
detailed instructions. | ||
|
||
[ae-docs]: https://cloud.google.com/appengine/docs/java/ | ||
|
||
## Setup | ||
|
||
Use either: | ||
|
||
* `gcloud init` | ||
* `gcloud auth application-default login` | ||
|
||
## Maven | ||
### Running locally | ||
|
||
$ mvn appengine:run | ||
|
||
### Deploying | ||
|
||
$ mvn clean package appengine:deploy | ||
|
||
<!-- | ||
## Intelij Idea | ||
Limitations - Appengine Standard support in the Intellij plugin is only available for the Ultimate Edition of Idea. | ||
|
||
### Install and Set Up Cloud Tools for IntelliJ | ||
|
||
To use Cloud Tools for IntelliJ, you must first install IntelliJ IDEA Ultimate edition. | ||
|
||
Next, install the plugins from the IntelliJ IDEA Plugin Repository. | ||
|
||
To install the plugins: | ||
|
||
1. From inside IDEA, open File > Settings (on Mac OS X, open IntelliJ IDEA > Preferences). | ||
1. In the left-hand pane, select Plugins. | ||
1. Click Browse repositories. | ||
1. In the dialog that opens, select Google Cloud Tools. | ||
1. Click Install. | ||
1. Click Close. | ||
1. Click OK in the Settings dialog. | ||
1. Click Restart (or you can click Postpone, but the plugins will not be available until you do restart IDEA.) | ||
|
||
### Running locally | ||
|
||
### Deploying | ||
--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
<!-- | ||
Copyright 2017 Google Inc. | ||
Alesvoy marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
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. | ||
--> | ||
<!-- [START gae_java21_pom] --> | ||
Alesvoy marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
<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"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<packaging>war</packaging> | ||
<version>1.0-SNAPSHOT</version> | ||
<groupId>com.example.appengine</groupId> | ||
<artifactId>gaeinfo-j21</artifactId> | ||
|
||
<!-- | ||
The parent pom defines common style checks and testing strategies for our samples. | ||
Removing or replacing it should not affect the execution of the samples in anyway. | ||
--> | ||
<parent> | ||
<groupId>com.google.cloud.samples</groupId> | ||
<artifactId>shared-configuration</artifactId> | ||
<version>1.2.0</version> | ||
</parent> | ||
|
||
<!-- [START gae_java21_compiler] --> | ||
Alesvoy marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
<properties> <!-- App Engine Standard currently requires Java 21 --> | ||
<maven.compiler.target>21</maven.compiler.target> | ||
<maven.compiler.source>21</maven.compiler.source> | ||
</properties> | ||
<!-- [END gae_java21_compiler] --> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<artifactId>libraries-bom</artifactId> | ||
<groupId>com.google.cloud</groupId> | ||
<scope>import</scope> | ||
<type>pom</type> | ||
<version>26.28.0</version> | ||
Alesvoy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.google.appengine</groupId> | ||
<artifactId>appengine-api-1.0-sdk</artifactId> | ||
<version>2.0.23</version> | ||
Alesvoy marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
</dependency> | ||
|
||
<dependency> | ||
<groupId>javax.servlet</groupId> | ||
Alesvoy marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
<artifactId>javax.servlet-api</artifactId> | ||
<version>3.1.0</version> | ||
<type>jar</type> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.squareup.okhttp3</groupId> | ||
<artifactId>okhttp</artifactId> | ||
<version>4.12.0</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.google.code.gson</groupId> | ||
<artifactId>gson</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.thymeleaf</groupId> | ||
<artifactId>thymeleaf</artifactId> | ||
<version>3.1.2.RELEASE</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
<build> | ||
<!-- for hot reload of the web application --> | ||
<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes | ||
</outputDirectory> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-war-plugin</artifactId> | ||
<version>3.4.0</version> | ||
<configuration> | ||
<webResources> | ||
<!-- in order to interpolate version from pom into appengine-web.xml --> | ||
<resource> | ||
<directory>${basedir}/src/main/webapp/WEB-INF</directory> | ||
<filtering>true</filtering> | ||
<targetPath>WEB-INF</targetPath> | ||
</resource> | ||
</webResources> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>com.google.cloud.tools</groupId> | ||
<artifactId>appengine-maven-plugin</artifactId> | ||
<version>2.5.0</version> | ||
Alesvoy marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
<configuration> | ||
<projectId>GCLOUD_CONFIG</projectId> | ||
<version>GCLOUD_CONFIG</version> | ||
<deploy.promote>true</deploy.promote> | ||
<deploy.stopPreviousVersion>true</deploy.stopPreviousVersion> | ||
</configuration> | ||
</plugin> | ||
|
||
</plugins> | ||
</build> | ||
</project> | ||
<!-- [END gae_java21_pom] --> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.