Architecture-aware Spring Boot development toolkit for IntelliJ IDEA
Features β’ Installation β’ Quick Start β’ Documentation β’ Contributing
SpringForge is a comprehensive IntelliJ IDEA plugin that streamlines Spring Boot development with AI-powered code generation, architecture analysis, and CI/CD automation. It combines ML-based pattern detection with AWS Bedrock's Claude AI to help developers build better Spring Boot applications faster.
- ποΈ Architecture-Aware Code Generation - Generate Spring Boot projects with proper architectural patterns
- π€ AI-Powered CI/CD - Automatically generate Dockerfiles, GitHub Actions, and Kubernetes manifests
- π Quality Analysis - ML-based detection of architecture violations and anti-patterns
- π Runtime Debugging - Advanced runtime analysis and performance monitoring
- π GitHub Integration - Analyze remote repositories via MCP protocol
Generate production-ready Spring Boot projects with intelligent scaffolding:
- Create New Projects - Full project setup with architecture template selection
- Existing Project Analysis - ML-powered architecture pattern detection
- Smart Scaffolding - Generate controllers, services, repositories with proper layers
- LLM Prompt Generation - Parse
input.ymland build context for AI code generation
Supported Architecture Patterns:
- Layered Architecture
- Hexagonal (Ports & Adapters)
- Clean Architecture
- Event-Driven Architecture
- Microservices
AI-powered DevOps artifact generation using AWS Bedrock Claude Sonnet 4.5:
- Dockerfile Generation - Optimized multi-stage builds with architecture detection
- GitHub Actions Workflows - Complete CI/CD pipelines with testing, building, and deployment
- Docker Compose - Multi-service configurations with detected dependencies
- Kubernetes Manifests - Production-ready deployments, services, and ingress
Source Options:
- π Local IntelliJ project analysis
- π Remote GitHub repository analysis (via GitHub MCP Server)
ML-powered architecture violation detection:
- Anti-Pattern Detection - Identify common Spring Boot anti-patterns
- Architecture Compliance - Validate adherence to architectural principles
- Severity Levels - Critical, High, Medium classifications
- Detailed Reports - File-level violations with recommendations
Advanced runtime analysis tools:
- Performance monitoring
- Memory leak detection
- Request tracing
- Metrics collection
Modern sidebar interface with tabbed navigation:
- Always accessible from IntelliJ sidebar
- Real-time progress tracking
- Integrated output console
- Similar UX to Maven, Gradle, and Copilot panels
- IntelliJ IDEA: 2024.3 or later (Ultimate Edition recommended)
- Java: JDK 21 or later
- Operating System: Windows, macOS, or Linux
- AWS Account with Bedrock access (for CI/CD generation)
- Claude Sonnet 4 model enabled in
us-east-1 - IAM credentials with
bedrock:InvokeModelpermission
- Claude Sonnet 4 model enabled in
- Docker Desktop (for GitHub MCP Server)
- GitHub Personal Access Token (for remote repository analysis)
- Open IntelliJ IDEA
- Go to Settings β Plugins β Marketplace
- Search for "SpringForge Tools"
- Click Install and restart IDE
# Clone the repository
git clone https://github.com/springforgeecosystem-prog/Spring-Forge.git
cd Spring-Forge
# Build the plugin
./gradlew buildPlugin
# The plugin will be in build/distributions/Install the plugin:
- Go to Settings β Plugins β βοΈ β Install Plugin from Disk
- Select
build/distributions/Spring-Forge-1.0-SNAPSHOT.zip - Restart IntelliJ IDEA
Enable Claude Sonnet 4 in AWS Bedrock:
# Verify Bedrock access
aws bedrock list-foundation-models --region us-east-1 \
--query 'modelSummaries[?contains(modelId, `claude-sonnet-4`)]'Create .env file in your project root:
cp .env.example .envEdit .env with your credentials:
# AWS Bedrock Configuration
AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=your_access_key_here
AWS_SECRET_ACCESS_KEY=your_secret_access_key_here
# Claude Configuration (optional - uses defaults)
CLAUDE_MODEL_ID=us.anthropic.claude-sonnet-4-20250514-v1:0
CLAUDE_MAX_TOKENS=4000IAM Policy Required:
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": "bedrock:InvokeModel",
"Resource": "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-sonnet-4*"
}]
}For analyzing remote GitHub repositories:
Step 1: Install Docker Desktop
- Download from docker.com
- Start Docker Desktop
Step 2: Create GitHub Personal Access Token
- Go to GitHub Settings β Tokens
- Create token with
repo,public_repo,read:orgpermissions - Copy the token
Step 3: Configure Environment
Add to .env:
GITHUB_PERSONAL_ACCESS_TOKEN=ghp_your_token_here
GITHUB_HOST=https://github.com
GITHUB_READ_ONLY=trueVerify Setup:
# Test GitHub MCP connectivity
docker ps # Ensure Docker is runningπ Detailed Setup Guide: docs/github-mcp-setup.md
-
Open SpringForge Sidebar
- Look for "SpringForge" tab on the right side of IntelliJ
- Or go to View β Tool Windows β SpringForge
-
Choose a Module
- Code Gen - Generate new projects or analyze existing ones
- CI/CD - Generate DevOps artifacts
- Quality - Analyze code quality
- Runtime - Launch runtime debugger
Method 1: Using Tool Window (New!)
- Click SpringForge in right sidebar
- Switch to CI/CD tab
- Select source:
- β Local Project (current IntelliJ project)
- β
GitHub Repository (enter URL like
https://github.com/spring-projects/spring-petclinic)
- Check files to generate:
- β Dockerfile
- β GitHub Actions Workflow
- β Docker Compose
- Click Generate CI/CD Files
- Monitor progress in output console
Method 2: Using Menu Actions
- Open a Spring Boot project in IntelliJ
- Go to Tools β SpringForge β Generate CI/CD Pipeline
- Select source and options
- Click OK
Output Files:
your-project/
βββ Dockerfile # Multi-stage optimized build
βββ docker-compose.yml # Multi-service orchestration
βββ .github/
β βββ workflows/
β βββ build.yml # Complete CI/CD pipeline
βββ k8s/
βββ deployment.yml # Kubernetes manifests
- Open SpringForge tool window
- Switch to Quality tab
- Click Analyze Code Quality
- View results in the panel:
- Architecture pattern detected
- Violations by severity
- Affected files and recommendations
- Open SpringForge tool window
- Switch to Code Gen tab
- Click Create New Spring Boot Project
- Select:
- Architecture pattern (Layered, Hexagonal, Clean, etc.)
- Dependencies (Web, JPA, Security, etc.)
- Project metadata (group, artifact, package)
- Click Generate
- Getting Started Guide - Complete walkthrough
- CI/CD Generation Guide - Detailed CI/CD usage
- GitHub MCP Setup - Remote repository analysis
- Sidebar Tool Window Guide - Using the unified interface
- Custom Icon Guide - Customize plugin appearance
- Architecture Overview - Plugin architecture
- GitHub MCP Protocol - MCP integration details
- Testing Guide - Testing MCP features
- Troubleshooting - Common issues
Spring-Forge/
βββ src/main/
β βββ java/org/springforge/
β β βββ cicdassistant/ # CI/CD generation module
β β β βββ actions/ # IntelliJ actions
β β β βββ bedrock/ # AWS Bedrock client
β β β βββ github/ # GitHub MCP integration
β β β βββ mcp/ # MCP protocol models
β β β βββ parsers/ # Code analyzers
β β β βββ services/ # Business logic
β β βββ codegeneration/ # Code generation module
β β β βββ actions/ # Project creation actions
β β β βββ ui/ # UI dialogs
β β βββ qualityassurance/ # Quality analysis module
β β β βββ actions/ # Analysis actions
β β β βββ toolwindow/ # Legacy tool window
β β β βββ ui/ # UI components
β β βββ runtimeanalysis/ # Runtime debugger module
β β β βββ actions/ # Debugger actions
β β βββ toolwindow/ # Unified sidebar panel (NEW)
β β β βββ panels/ # Tab panels
β β β βββ SpringForgeToolWindowFactory.kt
β β β βββ SpringForgeToolWindowPanel.kt
β β β βββ SpringForgeToolWindowService.kt
β β βββ icons/ # Icon provider
β βββ resources/
β βββ META-INF/
β β βββ plugin.xml # Plugin configuration
β βββ icons/ # Plugin icons
βββ docs/ # Documentation
βββ build.gradle.kts # Gradle build configuration
βββ .env.example # Environment template
| Component | Technology | Purpose |
|---|---|---|
| Plugin Framework | IntelliJ Platform SDK | IDE integration |
| Language | Kotlin 1.9.23 | Plugin development |
| AI Integration | AWS Bedrock + Claude Sonnet 4.5 | Code generation |
| Code Analysis | JavaParser 3.25.7 | AST analysis |
| MCP Protocol | Custom JSON-RPC 2.0 | GitHub integration |
| HTTP Client | OkHttp 4.11.0 | Network communication |
| YAML Parsing | SnakeYAML 2.1 | Configuration parsing |
| Async Operations | Kotlin Coroutines | Background tasks |
We welcome contributions! Please follow these guidelines:
-
Clone the repository
git clone https://github.com/springforgeecosystem-prog/Spring-Forge.git cd Spring-Forge -
Open in IntelliJ IDEA
- File β Open β Select
Spring-Forgedirectory - Wait for Gradle sync to complete
- File β Open β Select
-
Configure environment
cp .env.example .env # Add your AWS credentials -
Run the plugin
- Click Run β Run Plugin
- New IntelliJ window opens with plugin installed
-
Create a feature branch
git checkout -b feat/your-feature-name
-
Make changes
- Follow Kotlin coding conventions
- Add tests for new features
- Update documentation
-
Test thoroughly
./gradlew test ./gradlew runPluginVerifier -
Commit with conventional commits
git commit -m "feat: add new feature description"Types:
feat,fix,docs,style,refactor,test,chore -
Push and create PR
git push origin feat/your-feature-name
- Kotlin Style: Follow Kotlin Coding Conventions
- Documentation: Add KDoc comments for public APIs
- Testing: Write unit tests for business logic
- Error Handling: Use proper exception handling and user-friendly messages
- π Bug Fixes - Check Issues
- β¨ New Features - Architecture patterns, generators, analyzers
- π Documentation - Improve guides, add examples
- π§ͺ Testing - Increase test coverage
- π¨ UI/UX - Enhance user interface
# Run all tests
./gradlew test
# Run plugin verifier (compatibility check)
./gradlew runPluginVerifier
# Run with coverage
./gradlew test jacocoTestReport-
Test CI/CD Generation
# Use test project cd test-projects/spring-petclinic # Generate via plugin
-
Test GitHub Integration
# Run MCP verification ./test-github-mcp.ps1 -
Test Quality Analysis
- Open a Spring Boot project
- Run quality analysis from tool window
- Verify results are accurate
./gradlew buildPluginOutput: build/distributions/Spring-Forge-1.0-SNAPSHOT.zip
# Set version in build.gradle.kts
version = "1.0.0"
# Build
./gradlew buildPlugin
# Verify
./gradlew runPluginVerifierβ AWS Credentials Not Working
- Verify credentials in
.envfile - Check IAM permissions for Bedrock
- Test with:
aws bedrock list-foundation-models --region us-east-1 - See: AWS Credentials Troubleshooting
β GitHub MCP Connection Failed
- Ensure Docker Desktop is running
- Verify
GITHUB_PERSONAL_ACCESS_TOKENin.env - Check token permissions:
repo,public_repo - See: GitHub MCP Debugging
β Plugin Not Showing in Sidebar
- Restart IntelliJ IDEA
- Check: View β Tool Windows β SpringForge
- Verify plugin is enabled in Settings β Plugins
β Icon Not Displaying
- Rebuild plugin:
./gradlew clean buildPlugin - Reinstall plugin
- See: Custom Icon Guide
- Check Documentation
- Search Issues
- Create new issue with:
- Plugin version
- IntelliJ version
- Error logs from Help β Show Log in Explorer
- Unified Tool Window - New sidebar interface with 4 modules
- GitHub MCP Integration - Analyze remote repositories
- Enhanced CI/CD Generation - AWS Bedrock Claude Sonnet 4.5 integration
- Architecture Detection - ML-powered pattern recognition
- Background Task Progress - Real-time progress tracking
- Fixed GitHub branch auto-detection
- Resolved Docker line-ending issues
- Improved error handling for MCP protocol
- Added comprehensive setup guides
- Created troubleshooting documentation
- Added API documentation
See full changelog for complete history.
- AWS Bedrock - Claude AI integration
- Anthropic - Claude Sonnet 4.5 model
- JetBrains - IntelliJ Platform SDK
- Spring Framework - Architecture patterns and best practices
- JavaParser - Java code analysis
- Model Context Protocol (MCP) - GitHub integration protocol
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: springforgeecosystem@gmail.com
- JetBrains Marketplace release
- Additional architecture patterns (CQRS, Event Sourcing)
- Terraform/CloudFormation generation
- GitLab CI integration
- Enhanced test generation
- Multi-module project support
- Custom architecture templates
- Integration with SonarQube
- Performance benchmarking tools
- Database migration generators
- VS Code extension
- CLI tool for CI/CD integration
- Cloud-based analysis service
- Team collaboration features