Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Gradle Module GeneratorNew to Visual Studio Code? Get it now.
Gradle Module Generator

Gradle Module Generator

K Official

|
3 installs
| (0) | Free
Create Gradlew projects multi-modules
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Gradle Module Generator

📦 About

VS Code extension that simplifies the creation of Gradle modules in multi-module projects with Spring Boot. Automatically generate complete module structures for libraries or applications with a simple click.

✨ Features

  • ✅ Quick Gradle module creation
  • ✅ Two module types:
    • Library/Component: Reusable modules (Domain, Infrastructure, etc)
    • Spring Boot Application: Executable modules with @SpringBootApplication
  • ✅ Automatic generation of:
    • Configured build.gradle
    • Java package structure
    • Sample classes
    • Unit tests
    • Module README
  • ✅ Automatic settings.gradle update
  • ✅ Security validation (prevents path traversal)
  • ✅ Explorer context menu (right-click)

🚀 How to Use

Option 1: Command Palette

  1. Open your Gradle project root folder in VS Code
  2. Press Ctrl+Shift+P (or Cmd+Shift+P on Mac)
  3. Type "Create Gradle Module"
  4. Enter the module name (e.g., domain, app, infrastructure)
  5. Select the type:
    • Library/Component for reusable modules
    • Spring Boot Application for executable modules
  6. Done! The module will be created automatically

Option 2: Context Menu

  1. In the Explorer, right-click on the project root folder
  2. Select "Create Gradle Module"
  3. Follow steps 4-6 above

📋 Requirements

  • VS Code 1.107.0 or higher
  • Existing Gradle project (or empty folder to start a new one)

📂 Generated Structure

Library Module:

module-name/
├── build.gradle (with dependency management)
├── src/
│   ├── main/java/.../ModuleNameComponent.java
│   └── test/java/.../ModuleNameComponentTest.java
└── README.md

Application Module:

module-name/
├── build.gradle (with Spring Boot plugin)
├── src/
│   ├── main/
│   │   ├── java/.../ModuleNameApplication.java
│   │   └── resources/application.yml
│   └── test/java/.../ModuleNameApplicationTest.java
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft