Welcome! This guide will help you get started with the Gradle 9 Migration Helper in just a few minutes.
The Gradle 9 Migration Helper is a web-based application that:
- 🔍 Scans your Gradle projects for Gradle 9 compatibility issues
- 📊 Reports detailed information about each issue
- 🤖 Automatically fixes most common migration problems
- 💾 Creates backups before making any changes
- 🏗️ Supports multi-module projects
# Navigate to project directory
cd gradle-migration-helper
# Start the server
./gradlew libertyRunWait for: The server gradleMigrationServer is ready to run a smarter planet.
Open your browser and go to:
http://localhost:9080
- Enter your project path (e.g.,
/Users/yourname/projects/my-gradle-app) - Click "Analyze Project"
- Review the detected issues
- Click "Fix All Auto-Fixable Issues" or select specific issues
That's it! 🎉
Shows:
- Project name and location
- Current Gradle version
- Whether it's a multi-module project
- List of modules
- Total Issues: All detected problems
- Critical Issues: Must-fix items for Gradle 9
- Auto-Fixable: Issues that can be fixed automatically
Each issue shows:
- Title: Brief description
- Severity: CRITICAL, HIGH, MEDIUM, or LOW
- Description: What the problem is
- Explanation: Why it needs to be fixed
- Current Code: The problematic code
- Suggested Fix: How to fix it
- File Location: Where the issue is located
- Filter by severity (Critical, High, Medium)
- Show only auto-fixable issues
- Combine filters for precise results
# Example project structure
my-app/
├── build.gradle
├── settings.gradle
└── src/Steps:
- Enter path:
/path/to/my-app - Click "Analyze Project"
- Review issues (typically 5-15 issues)
- Click "Fix All Auto-Fixable Issues"
- Done! Your project is Gradle 9 ready
# Example project structure
my-app/
├── build.gradle
├── settings.gradle
├── core/
│ └── build.gradle
├── web/
│ └── build.gradle
└── api/
└── build.gradleSteps:
- Enter root path:
/path/to/my-app - Click "Analyze Project"
- Tool detects all modules automatically
- Issues are grouped by module
- Fix all at once or module by module
When to use: You want to review changes before applying them
Steps:
- Analyze your project
- Review each issue carefully
- Check the boxes next to issues you want to fix
- Click "Fix Selected Issues"
- Review the results
- Repeat for remaining issues
Must fix - Will cause build failures in Gradle 9
- Deprecated configurations (
compile,runtime) - Deprecated dependency methods
- Old Gradle version
Action: Fix immediately
Should fix - May cause problems or warnings
- Deprecated API usage
- Archive task properties
- Deprecated methods
Action: Fix before upgrading to Gradle 9
Nice to fix - Best practices and future-proofing
- Dynamic properties
- Legacy buildscript syntax
- Deprecated properties
Action: Fix when convenient
Optional - Recommendations and suggestions
- Code style improvements
- Alternative approaches
Action: Consider for new code
Every time you fix an issue, the tool:
- Creates a timestamped backup (e.g.,
build.gradle.backup.1234567890) - Applies the fix
- Reports the backup location
If something goes wrong:
# Find your backup
ls -la *.backup.*
# Restore it
cp build.gradle.backup.1234567890 build.gradleBefore fixing:
- Review the "Current Code" vs "Suggested Fix"
- Read the detailed explanation
- Understand the impact
- Then apply the fix
- ✅ Analyze before fixing
- ✅ Read issue explanations
- ✅ Test after fixing
- ✅ Commit changes to version control
- ✅ Fix critical issues first
- ✅ Review backups location
- ❌ Don't skip reading explanations
- ❌ Don't fix without backups
- ❌ Don't ignore critical issues
- ❌ Don't forget to test after fixing
- ❌ Don't delete backup files immediately
After applying fixes:
# Navigate to your project
cd /path/to/your/project
# Clean build
./gradlew clean
# Build project
./gradlew build
# Run tests
./gradlew test
# If successful, you're ready for Gradle 9!- Enter in project path field: Start analysis
- Ctrl/Cmd + Click on checkbox: Select multiple issues
- Esc: Close dialogs
✅ Great! Your project is already Gradle 9 compatible
- Check the project path is correct
- Ensure you have read permissions
- Verify it's a valid Gradle project (has build.gradle)
- Check file permissions
- Ensure files aren't locked by another process
- Review the error message
- Try fixing manually using the suggested fix
- Check if port 9080 is available
- Verify Java 17+ is installed
- Review server logs in
build/wlp/usr/servers/*/logs/
- ✅ Review all detected issues
- ✅ Fix auto-fixable issues
- ✅ Manually address remaining issues
- ✅ Test your project
- ✅ Update to Gradle 9
- 📖 Read README.md for comprehensive documentation
- 🔧 Check INSTALLATION.md for setup details
- 📝 Review CONTRIBUTING.md to contribute
- 📊 See PROJECT_SUMMARY.md for technical details
# 1. Start the tool
./gradlew libertyRun
# 2. Open browser
open http://localhost:9080
# 3. Analyze your project
# Enter: /Users/john/projects/my-app
# Click: Analyze Project
# 4. Review results
# Total Issues: 12
# Critical: 4
# Auto-Fixable: 10
# 5. Fix issues
# Click: Fix All Auto-Fixable Issues
# 6. Verify results
# Success: 10/10 issues fixed
# Backups created in project directory
# 7. Test your project
cd /Users/john/projects/my-app
./gradlew clean build test
# 8. Success! 🎉- README.md - Full documentation
- QUICKSTART.md - Quick reference
- INSTALLATION.md - Setup guide
- 🐛 GitHub Issues
- 💬 Discussions
- 📧 Email: support@example.com
- ⭐ Star the project on GitHub
- 🔄 Share with your team
- 🤝 Contribute improvements
Q: Is it safe to use on production code? A: Yes, but always review changes and test thoroughly. Backups are created automatically.
Q: Can I undo changes? A: Yes, restore from the backup files created before each fix.
Q: Does it support Kotlin DSL? A: Not yet, but it's planned for a future release.
Q: Can I run it in CI/CD? A: Yes, you can integrate it into your pipeline. See CI/CD documentation.
Q: What if I have custom Gradle plugins? A: The tool focuses on core Gradle issues. Custom plugin issues may need manual review.
Q: Does it modify my source code? A: No, it only modifies Gradle build files (build.gradle, settings.gradle).
Ready to migrate? Start the server and begin your Gradle 9 journey! 🚀