Get up and running with Gradle 9 Migration Helper in 5 minutes!
- Java 17+ installed
- JAVA_HOME environment variable set
- Terminal/Command Prompt access
Since the gradle-wrapper.jar is a binary file, you need to download it:
# Download the Gradle wrapper
curl -L https://services.gradle.org/distributions/gradle-8.5-bin.zip -o gradle.zip
unzip gradle.zip
cp gradle-8.5/lib/plugins/gradle-wrapper-*.jar gradle/wrapper/gradle-wrapper.jar
rm -rf gradle-8.5 gradle.zipOr simply run:
gradle wrapper --gradle-version 8.5# Make gradlew executable (Unix/Mac)
chmod +x gradlew
# Build the project
./gradlew clean buildOn Windows:
gradlew.bat clean build./gradlew libertyRunOn Windows:
gradlew.bat libertyRunThe server will start on http://localhost:9080
Open your browser and navigate to:
http://localhost:9080
-
Enter Project Path: Type the absolute path to your Gradle project
- Example (Mac/Linux):
/home/user/projects/my-gradle-app - Example (Windows):
C:\Users\user\projects\my-gradle-app
- Example (Mac/Linux):
-
Click "Analyze Project": Wait for the analysis to complete
-
Review Issues: Browse through detected issues with detailed explanations
-
Fix Issues:
- Click "Fix This Issue" for individual fixes
- Select multiple issues and click "Fix Selected Issues"
- Click "Fix All Auto-Fixable Issues" to fix everything at once
Want to test the tool? Create a sample project with known issues:
mkdir -p test-project
cd test-project
# Create build.gradle with deprecated syntax
cat > build.gradle << 'EOF'
plugins {
id 'java'
}
group = 'com.example'
version = '1.0.0'
archivesBaseName = 'test-app'
repositories {
mavenCentral()
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.36'
runtime 'org.slf4j:slf4j-simple:1.7.36'
testCompile 'junit:junit:4.13.2'
}
task hello << {
println 'Hello World'
}
EOF
# Create settings.gradle
echo "rootProject.name = 'test-project'" > settings.gradle
# Create gradle wrapper properties
mkdir -p gradle/wrapper
cat > gradle/wrapper/gradle-wrapper.properties << 'EOF'
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
EOFNow analyze this test project with the tool - it should detect:
- ✅ Deprecated
compileconfiguration - ✅ Deprecated
runtimeconfiguration - ✅ Deprecated
testCompileconfiguration - ✅ Deprecated task
<<operator - ✅ Old Gradle version (7.6)
- ✅ Deprecated
archivesBaseNameproperty
If port 9080 is already in use, edit src/main/liberty/config/server.xml:
<httpEndpoint id="defaultHttpEndpoint"
httpPort="9090" <!-- Change this -->
httpsPort="9443"
host="*" />Ensure Java 17+ is installed:
java -versionClean and rebuild:
./gradlew clean build --refresh-dependenciesCheck logs in:
build/wlp/usr/servers/gradleMigrationServer/logs/
- Read the README.md for detailed documentation
- Check CONTRIBUTING.md to contribute
- Review CHANGELOG.md for version history
- Report issues on GitHub
Press Ctrl+C in the terminal where the server is running, or run:
./gradlew libertyStopFor development with auto-reload:
./gradlew libertyDevThis will:
- Start the server
- Watch for file changes
- Automatically reload on changes
- Provide interactive console
Build the WAR file:
./gradlew clean buildThe WAR file will be at:
build/libs/gradle-migration-helper.war
Deploy this to any Jakarta EE 10 compatible server.
Need Help? Open an issue on GitHub or check the documentation!