Criar um app para o ambiente flexível do App Engine no Cloud Code para IntelliJ
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
O App Engine é uma plataforma sem servidor totalmente gerenciada para desenvolver e hospedar aplicativos da Web em grande escala.
Neste documento, descrevemos como criar um aplicativo (ou importar um projeto) para o ambiente flexível do App Engine usando o Cloud Code.
Antes de começar
Instale e configure o ambiente de desenvolvimento integrado do JetBrains versão 2022.3+
(IntelliJ Ultimate ou Community) no PATH da sua máquina.
Para instalar o plug-in do Cloud Code, siga estas instruções:
Abra o IntelliJ IDEA ou qualquer ambiente de desenvolvimento integrado compatível do JetBrains.
Acesse o mercado de plug-ins em Arquivo > Configurações > Plug-ins. Como opção, no Mac OS X acesse IntelliJ IDEA > Preferences > Plugins e procure o plug-in do Cloud Code para instalá-lo.
Talvez seja necessário reiniciar o ambiente de desenvolvimento integrado para ativar o plug-in.
Crie um novo aplicativo
É possível criar um novo aplicativo com o novo assistente de projeto ou importando um projeto existente no Cloud Source Repositories.
Usar o novo assistente de projeto
Para criar um novo projeto, você pode usar o assistente de novo projeto do IntelliJ para gerar um aplicativo de modelo como ponto de partida para seu próprio aplicativo.
Crie um projeto novo da seguinte maneira:
Navegue até Arquivo > Novo > Projeto para exibir a caixa de diálogo Novo projeto.
Se você estiver usando o IntelliJ Ultimate 2022.3, escolha
Jakarta EE no painel esquerdo.
Para mais detalhes sobre como criar um novo
aplicativo Java Enterprise, consulte o tutorial da JetBrains
Seu primeiro aplicativo Java EE.
Se você estiver usando uma versão mais antiga do IntelliJ Ultimate, clique no menu suspenso de versão no canto superior esquerdo da tela (ao lado do logotipo do IntelliJ IDEA) e selecione sua versão para garantir que as instruções correspondam à sua experiência.
Digite um Nome para o projeto.
Insira um Local do projeto se você não quiser manter o padrão.
Clique em Próxima.
Selecione as dependências necessárias para seu aplicativo e clique em
Criar.
Fazer o check-out de um projeto existente
Faça o check-out do seu projeto existente no Cloud Source Repositories da maneira a seguir:
Escolha VCS > Obter do controle de versões. Se preferir, acesse a caixa de diálogo de boas-vindas e clique em Get from VSC.
Selecione Google Cloud no menu suspenso Controle de versões e clique em Clonar.
Na caixa de diálogo Clone from Google Cloud, selecione o projeto do Cloud associado ao seu projeto em Cloud Project.
Selecione seu Cloud Repository.
Selecione o diretório pai em Parent Directory.
Digite o nome do diretório em Directory Name.
Clique em Clone.
Adicionar suporte de biblioteca
Para adicionar suporte ao framework do App Engine ao seu aplicativo, siga estas etapas:
Navegue até Ferramentas > Google Cloud Code > App Engine > Adicionar suporte do App
Engine > Ambiente padrão do Google App Engine.
Selecione o módulo ao qual você quer adicionar o suporte de biblioteca.
Clique em OK.
Se for necessário, marque a caixa de seleção Criar app.yaml.
Para enviar um feedback ou informar um problema no ambiente de desenvolvimento integrado do IntelliJ, acesse
Tools > Cloud Code > Help / About > Envie
feedback ou informe um problema para informar um problema no GitHub.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-09-04 UTC."],[[["\u003cp\u003eCloud Code primarily supports Java applications within IntelliJ IDEA (Ultimate and Community editions) for App Engine development.\u003c/p\u003e\n"],["\u003cp\u003eApp Engine support in Cloud Code is being deprecated, with Java 8 support ending and App Engine being disabled by default, so it's not recommended to create new App Engine projects.\u003c/p\u003e\n"],["\u003cp\u003eYou can create new applications for App Engine using the IntelliJ New Project wizard or import existing projects from Cloud Source Repositories.\u003c/p\u003e\n"],["\u003cp\u003eTo enable App Engine support in your IDE, go to Settings > Google Cloud Code > App Engine, and to add it to an existing project, navigate to Tools > Google Cloud Code > App Engine > Add App Engine support.\u003c/p\u003e\n"]]],[],null,["# Create an app for the App Engine Flexible Environment in Cloud Code for IntelliJ\n\n| **Caution:** As of January 31, 2024, Java 8 support for App Engine has ended, and will be deprecated on January 31, 2026. As a result, Cloud Code disables App Engine by default. To enable App Engine in your IDE, navigate to **Settings** \\\u003e **Google\n| Cloud Code** \\\u003e **App Engine** . Due to the upcoming deprecation of App Engine, we don't recommend creating new App Engine projects. For more information about App Engine deprecations, see [Feature deprecations](/appengine/docs/standard/deprecations). For more information about the runtime support schedule for App Engine, see [Runtime support schedule](/appengine/docs/standard/lifecycle/support-schedule).\n| **Note:** The following IDEs support this feature:\n|\n| - IntelliJ IDEA - Ultimate\n| - IntelliJ IDEA - Community\n| **Note:** Only Java applications are supported.\n\n[App Engine](/appengine/docs/flexible/java) is a fully\nmanaged, serverless platform for developing and hosting web applications at\nscale.\n\nThis document describes how to create an application (or import\nan existing project) for the App Engine flexible\nenvironment with Cloud Code.\n\nBefore you begin\n----------------\n\n- Install and set up **JetBrains IDE version `2022.3+`** (IntelliJ Ultimate or Community) on the `PATH` of your machine.\n\n\u003c!-- --\u003e\n\n- Install the Cloud Code plugin:\n\n - Open IntelliJ IDEA (or any supported JetBrains IDE).\n - From your plugins marketplace (**File** \\\u003e **Settings** \\\u003e **Plugins** or for Mac OS X, **IntelliJ IDEA** \\\u003e **Preferences** \\\u003e **Plugins**), search for the 'Cloud Code' plugin and install it.\n\n You may be prompted to restart your IDE to activate the plugin.\n\nCreate a new application\n------------------------\n\nYou can create a new application by using the new project wizard or by importing\nan existing project in Cloud Source Repositories.\n\n### Use the new project wizard\n\nTo create a new project, you can use the IntelliJ New Project wizard to generate\na template application as the start for your own application.\n\nCreate a new project as follows:\n\n1. Navigate to **File** \\\u003e **New** \\\u003e **Project** to display the **New Project**\n dialog.\n\n2. If you're using IntelliJ Ultimate `2022.3`, choose\n **Jakarta EE** in the left panel.\n\n For more details on creating a new\n Java Enterprise application, see the JetBrains tutorial\n [Your first Java EE application](https://www.jetbrains.com/help/idea/creating-and-running-your-first-java-ee-application.html).\n If you're using an older version of IntelliJ Ultimate, click the\n version dropdown menu at the top-left of the screen (next to the IntelliJ\n IDEA logo) and select your version to ensure the instructions match your\n experience.\n3. Enter a project **Name**.\n\n4. Enter a project **Location** if you do not want to keep the default.\n\n5. Click **Next**.\n\n6. Select any of the dependencies you need for your application and click\n **Create**.\n\n### Check out an existing project\n\nYou can check out your existing project in Cloud Source Repositories:\n\n1. Choose **VCS \\\u003e Get from Version Control** . Alternatively, go to the welcome dialog and click **Get from VSC**.\n2. Select **Google Cloud** from the **Version Control** drop-down and click **Clone**.\n3. In the **Clone from Google Cloud** dialog, select the **Cloud Project** associated with your project.\n4. Select your **Cloud Repository**.\n5. Select the **Parent Directory**.\n6. Enter the **Directory Name**.\n7. Click **Clone**.\n\nAdd framework support\n---------------------\n\nTo add App Engine framework support to your application, follow these steps:\n| **Note:** If you previously configured framework support, you can skip these steps.\n\n1. Navigate to **Tools** \\\u003e **Google Cloud Code** \\\u003e **App Engine** \\\u003e **Add App\n Engine support** \\\u003e **Google App Engine standard**.\n\n2. Select the module you want to add framework support to.\n\n3. Click **OK**.\n\n4. If needed, select the **Create app.yaml** checkbox.\n\n5. Click **OK**.\n\nWhat's next\n-----------\n\nNow that you've created an application with App Engine support, you\ncan deploy it to the\n[App Engine flexible environment](/code/docs/intellij/deploy-flex).\n\n\nGet support\n-----------\n\nTo submit feedback or report an issue in your IntelliJ IDE, go to **Tools** \\\u003e **Cloud Code** \\\u003e **Help / About** \\\u003e **Submit\nfeedback or report an issue** to report an issue on [GitHub](https://github.com/GoogleCloudPlatform/cloud-code-intellij/issues)."]]