Overview Version History Q & A Rating & Review
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
Open your Gradle project root folder in VS Code
Press Ctrl+Shift+P (or Cmd+Shift+P on Mac)
Type "Create Gradle Module"
Enter the module name (e.g., domain, app, infrastructure)
Select the type:
Library/Component for reusable modules
Spring Boot Application for executable modules
Done! The module will be created automatically
In the Explorer, right-click on the project root folder
Select "Create Gradle Module"
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