Micronaut® Launch

Launch for Micronaut</a>® Framework is a lightweight extension for creating Micronaut applications within Visual Studio Code.

The Micronaut</a>® framework is a lightweight reactive framework that provides a solid foundation for building cloud native Java microservices.

Extension Installation #

Note: This extension is part of the Graal Cloud Native Extension Pack. We recommend you to install the Graal Cloud Native Extension Pack as it provides a complete Micronaut development support.

  1. Navigate to Extensions in the left-hand side Activity Bar.
  2. Search for “Graal Cloud Native Extension Pack” in the search field.
  3. Once found, click Install. It installs the extension from the VS Code Marketplace;
  4. Reload when required.

Usage #

Create a New Micronaut Project #

To quickly create a new project, select Command Palette from the View menu. Enter “Micronaut Launch” and invoke the Micronaut Launch: Create Micronaut Project command. A wizard will prompt you to:

  • Pick the Micronaut version
  • Pick the application type (for more information, see Creating a Project)
  • Pick the Java version (from the list of Java installations found on your system)
  • Enter a project name (or use the default “demo”)
  • Enter a base package name (or use the default “com.example”)
  • Pick the project language (you can build an application using Java, Groovy, or Kotlin)
  • Pick the project features (some of which are listed below)

    Micronaut Project Features

  • Pick the build tool (Gradle or Maven)
  • Pick the test framework (JUnit, Spock, or Kotest)
  • Select the destination directory

Finally, select whether to open the new project in a new window or add it to the current workspace.

Extension Settings #

The extension contributes the following settings:

  • micronaut.home - the optional path to your local Micronaut Launch Command Line Interface (CLI). Specify the local Micronaut CLI installation to be used in addition to the default Micronaut Launch web interface, for example, /usr/me/micronaut-cli-4.0.1.

    Micronaut CLI Set

  • micronaut.launchUrl - the optional URL for the Micronaut Launch web interface (for example, https://launch.micronaut.io). Specify a URL for the Micronaut Launch web interface in addition to the default (https://micronaut.io/launch/).

Extension Commands #

Invoke the commands from the Command Palette by searching for “Micronaut Launch”.

The following command is available for the Micronaut project creation:

  • Micronaut Launch: Create Micronaut Project: create a Micronaut project

Feedback #

If you have suggestions for new features, or if you have found a bug: