Migrate to Gradle 8 from Gradle 7
Recipe ID
org.openrewrite.gradle.MigrateToGradle8Artifact
org.openrewrite:rewrite-gradleMigrate to version 8.x. See the Gradle upgrade guide from version 7.x to 8.0 and version 8.x to latest for more information.
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.gradle.MigrateToGradle8If the recipe isn’t available locally, install it with:
mod config recipes jar install org.openrewrite:rewrite-gradle:8.88.0Definition
This recipe runs the following recipes in order.
- Migrate to Gradle 7 from Gradle 6
org.openrewrite.gradle.MigrateToGradle7 - Update Gradle wrapper
org.openrewrite.gradle.UpdateGradleWrapper - Replace Gradle 8 introduced deprecations in JaCoCo report task
org.openrewrite.gradle.gradle8.JacocoReportDeprecations - Add JUnit Platform Launcher
org.openrewrite.gradle.AddJUnitPlatformLauncher - Remove an enabled Gradle preview feature
org.openrewrite.gradle.RemoveEnableFeaturePreview - Remove an enabled Gradle preview feature
org.openrewrite.gradle.RemoveEnableFeaturePreview - Remove an enabled Gradle preview feature
org.openrewrite.gradle.RemoveEnableFeaturePreview - Use
=assignment syntax for well-known Gradle propertiesorg.openrewrite.gradle.UseAssignmentForPropertySyntax
Data tables
Structured output this recipe can produce.
- Maven metadata failuresAttempts to resolve maven metadata that failed.
org.openrewrite.maven.table.MavenMetadataFailures - Source files that had resultsSource files that were modified by the recipe run.
org.openrewrite.table.SourcesFileResults - Source files that had search resultsSearch results that were found during the recipe run.
org.openrewrite.table.SearchResults - Source files that errored on a recipeThe details of all errors produced by a recipe run.
org.openrewrite.table.SourcesFileErrors - Recipe performanceStatistics used in analyzing the performance of recipes.
org.openrewrite.table.RecipeRunStats