Get up and running with Gradle 9 Migration Helper in 5 minutes.
- Java: 17 or higher
- Gradle: 8.5+ (included via wrapper)
- Memory: 2GB RAM
- Disk Space: 500MB
- ✅ macOS
- ✅ Linux
- ✅ Windows
- Chrome/Edge 90+
- Firefox 88+
- Safari 14+
git clone https://github.com/your-repo/gradle-migration-helper.git
cd gradle-migration-helperjava -version
# Should show Java 17 or higher./gradlew buildStep 1: Start the server
./gradlew libertyRunWait for the message: The server is ready to run a smarter planet
Step 2: Open your browser
http://localhost:9080
Step 3: Analyze your project
- Enter the absolute path to your Gradle project
- Example:
/Users/you/my-gradle-project
- Example:
- Click "Analyze Project"
- Review detected issues
- Click "Fix" buttons to apply automatic fixes
Step 4: Verify the changes
- Check the modified files
- Backup files are created automatically (
.backup.*) - Run your build:
./gradlew build
Step 5: Stop the server
- Press
Ctrl+Cin the terminal
Step 1: Start the server
./gradlew libertyRunStep 2: Analyze a project
curl -X POST http://localhost:9080/api/analyze \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "projectPath=/absolute/path/to/your/project"Step 3: Review the response The response includes:
- List of detected issues
- Issue IDs (needed for fixing)
- Severity levels
- Auto-fix availability
Step 4: Fix issues
curl -X POST http://localhost:9080/api/fix \
-H "Content-Type: application/json" \
-d '{
"issueIds": ["<uuid-from-step-2>", "<uuid-from-step-2>"]
}'Let's analyze a sample project step-by-step:
mkdir ~/test-gradle-project
cd ~/test-gradle-project
# Create a simple build.gradle with deprecated syntax
cat > build.gradle << 'EOF'
plugins {
id 'java'
}
group = 'com.example'
version = '1.0.0'
dependencies {
compile 'com.google.guava:guava:30.0-jre'
testCompile 'junit:junit:4.13.2'
}
EOF
# Create gradle wrapper
gradle wrapper --gradle-version 7.6Using Web UI:
- Open http://localhost:9080
- Enter:
/Users/<your-username>/test-gradle-project - Click "Analyze Project"
Using API:
curl -X POST http://localhost:9080/api/analyze \
-d "projectPath=$HOME/test-gradle-project"You should see:
- ✅ 2 critical issues detected
- ✅
compile→ should beimplementation - ✅
testCompile→ should betestImplementation - ✅ Gradle version 7.6 → should be 9.0+
Click the "Fix" buttons or use the API with issue IDs.
cd ~/test-gradle-project
cat build.gradle
# Should now show 'implementation' and 'testImplementation'
# Check backups
ls -la *.backup.*┌─────────────────────────────────────────────┐
│ ⚠️ Deprecated Configuration Usage │
│ Severity: CRITICAL | Auto-Fix: Yes │
├─────────────────────────────────────────────┤
│ File: build.gradle (line 10) │
│ │
│ Current: compile 'lib:1.0' │
│ Suggested: implementation 'lib:1.0' │
│ │
│ [Fix Automatically] │
└─────────────────────────────────────────────┘
{
"id": "uuid-1234",
"type": "DEPRECATED_CONFIGURATIONS",
"severity": "CRITICAL",
"title": "Deprecated Configuration Usage",
"filePath": "/path/to/build.gradle",
"lineNumber": 10,
"currentCode": "compile 'lib:1.0'",
"suggestedFix": "implementation 'lib:1.0'",
"autoFixable": true
}❌ You didn't enter a path ✅ Enter the absolute path to your project
❌ Missing build.gradle or settings.gradle
✅ Make sure your project has Gradle build files
❌ Used relative path like ../my-project
✅ Use absolute path like /Users/you/my-project
❌ Port 9080 already in use ✅ Stop other applications using that port
✅ Analyze your real project - Try it on your actual Gradle project
✅ Learn more patterns - See Detection Patterns
✅ Explore the API - Read API Reference
✅ Check examples - Browse Examples
Important: The tool creates backups before making changes!
build.gradle # Original
build.gradle.backup.1699234567890 # Backup with timestamp
# List backups
ls -la *.backup.*
# Restore
mv build.gradle.backup.1699234567890 build.gradle# Remove all backups in current directory
find . -name "*.backup.*" -type f -deleteReady to dive deeper? → User Guide
Need help? → Troubleshooting