Créer une application pour l'environnement flexible App Engine dans Cloud Code pour IntelliJ
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
App Engine est une plate-forme sans serveur entièrement gérée pour le développement et l'hébergement d'applications Web à grande échelle.
Ce document explique comment créer une application (ou importer un projet existant) pour l'environnement flexible App Engine avec Cloud Code.
Avant de commencer
Installez et configurez l'IDE JetBrains version 2022.3+ (IntelliJ Ultimate ou Community) sur le PATH de votre machine.
Installez le plug-in Cloud Code :
Ouvrez IntelliJ IDEA (ou tout IDE JetBrains compatible).
Sélectionnez File > Settings > Plugins (Fichier > Paramètres > Plug-ins) ou, sur macOS X, IntelliJ IDEA > Preferences > Plugins (IntelliJ IDEA > Préférences > Plug-ins). Recherchez le plug-in "Cloud Code" dans le dépôt des plug-ins et installez-le.
Vous serez peut-être invité à redémarrer votre IDE pour activer le plug-in.
Créer une application
Vous pouvez créer une application à l'aide de l'assistant de création de projet ou en important un projet existant dans Cloud Source Repositories.
Utiliser l'assistant de création de projet
Pour créer un projet, vous pouvez utiliser l'assistant de création de projet IntelliJ pour générer un modèle d'application servant de base à votre propre application.
1. Créez un projet comme suit :
Accédez à File > New > Project (Fichier > Nouveau > Projet) pour afficher la boîte de dialogue New Project (Nouveau projet).
Si vous utilisez IntelliJ Ultimate 2022.3, sélectionnez Jakarta EE dans le panneau de gauche.
Pour en savoir plus sur la création d'une application Java Enterprise, consultez le tutoriel JetBrains Your first Java EE application (Votre première application Java EE).
Si vous utilisez une ancienne version d'IntelliJ Ultimate, cliquez sur le menu déroulant des versions en haut à gauche de l'écran (à côté du logo IntelliJ IDEA) et sélectionnez votre version pour vous assurer que les instructions correspondent à votre expérience.
Saisissez un nom pour le projet.
Renseignez le champ Location (Emplacement) si vous ne souhaitez pas conserver la valeur par défaut.
Cliquez sur Suivant.
Sélectionnez les dépendances dont vous avez besoin pour votre application, puis cliquez sur Créer.
Extraire un projet existant
Vous pouvez extraire un projet existant dans Cloud Source Repositories :
Sélectionnez VCS > Get from Version Control (Système de contrôle des versions > Obtenir depuis…). Vous pouvez également accéder à la boîte de dialogue de bienvenue et cliquer sur Obtenir à partir de VCS.
Dans le menu déroulant Version Control (Contrôle des versions), sélectionnez Google Cloud, puis cliquez sur Clone (Cloner).
Dans la boîte de dialogue Clone from Google Cloud (Cloner depuis Google Cloud), sélectionnez le projet Cloud associé à votre projet dans le champ Cloud Project (Projet Cloud).
Sélectionnez votre dépôt cloud dans le champ Cloud Repository (Dépôt Cloud).
Sélectionnez le répertoire parent dans le champ Parent Directory (Répertoire parent).
Entrez le nom du répertoire dans le champ Directory Name (Nom du répertoire).
Cliquez sur Clone (Cloner).
Ajouter la compatibilité avec un framework
Pour ajouter la prise en charge du framework App Engine à votre application, procédez comme suit :
Accédez à Tools > Google Cloud Code > App Engine > Add App Engine support > Google App Engine standard (Outils > Google Cloud Code > App Engine > Ajouter la compatibilité avec App Engine > Google App Engine standard).
Sélectionnez le module pour lequel vous souhaitez ajouter la compatibilité avec le framework.
Cliquez sur OK.
Si nécessaire, cochez la case Create app.yaml (Créer un fichier app.yaml).
Cliquez sur OK.
Étapes suivantes
Maintenant que vous avez créé une application compatible avec App Engine, vous pouvez la déployer dans l'environnement flexible App Engine.
Obtenir de l'aide
Pour envoyer des commentaires ou signaler un problème dans votre IDE IntelliJ, accédez à Outils > Cloud Code > Aide / À propos > Envoyer des commentaires ou signaler un problème pour signaler un problème sur GitHub.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 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)."]]