Graal Development Kit for Micronaut Launcher
The Graal Development Kit for Micronaut Launcher (GDK Launcher) is an extension for creating Graal Development Kit for Micronaut (GDK) applications in VS Code.
Extension Installation #
The Graal Development Kit for Micronaut Launcher is part of the Graal Development Kit for Micronaut Extension Pack, which you are recommended to install. The extension pack provides support for the Micronaut® framework, GraalVM Native Image, integration with the Oracle Cloud Infrastructure DevOps service, Oracle Database and MySQL servers, etc.
- In the Activity Bar on the side of VS Code, bring up the Extensions view by clicking the Extensions icon.
- Enter “Graal Development Kit” in the search box to filter the Marketplace offerings. You should see Graal Development Kit for Micronaut Extension Pack in the list.
- Click Install. It installs the pack from the VS Code Marketplace
- Reload when required.
Usage #
Create a New Project #
The GDK Launcher can create different types of GDK applications. A wizard guides you through the selection of GDK features for your project.
-
Go to View, Command Palette, search for “Graal Dev Kit”, and invoke the Graal Dev Kit: Create New Project quick action:
- The wizard will prompt you to generate a new Maven or Gradle project. For example, to create a simple Java-based GDK application:
- Select the Micronaut version
- Select an Application type
- Select an installed JDK
- Provide a name for the project
- Provide a base package
- Pick the GDK services and features to be included in the project
- Select a build tool: Maven or Gradle
- Select a unit test framework: JUnit, Spock, or Kotest
- Select cloud providers to support: Oracle Cloud Infrastructure, Amazon Web Services, Google Cloud Platform. Note: you need to select OCI if you want OCI DevOps support.
- Finally, you are asked where to save your new project. You can then choose to open it in a new VS Code window or add it to a workspace in the current VS Code window.
You now have a new GDK application, complete with example code showing you how to start using GDK.
Feedback #
If you have suggestions for new features, or if you have found a bug: