diff --git a/docs/recipes/analysis/controlflow/controlflowvisualization.md b/docs/recipes/analysis/controlflow/controlflowvisualization.md index bd0c36c59..ab1781237 100644 --- a/docs/recipes/analysis/controlflow/controlflowvisualization.md +++ b/docs/recipes/analysis/controlflow/controlflowvisualization.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ControlFlowVisualizationExample displayName: Control Flow Visualization example recipeList: - - org.openrewrite.analysis.controlflow.ControlFlowVisualization: includeDotfile: false + - org.openrewrite.analysis.controlflow.ControlFlowVisualization: + includeDotfile: false ``` Now that `com.yourorg.ControlFlowVisualizationExample` has been defined, activate it and take a dependency on `org.openrewrite.meta:rewrite-analysis:{{VERSION_REWRITE_ANALYSIS}}` in your build file: diff --git a/docs/recipes/analysis/search/findflowbetweenmethods.md b/docs/recipes/analysis/search/findflowbetweenmethods.md index 1f9d2d983..cf45e7972 100644 --- a/docs/recipes/analysis/search/findflowbetweenmethods.md +++ b/docs/recipes/analysis/search/findflowbetweenmethods.md @@ -42,7 +42,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindFlowBetweenMethodsExample displayName: Finds flow between two methods example recipeList: - - org.openrewrite.analysis.search.FindFlowBetweenMethods: startMethodPattern: java.util.List add(..) + - org.openrewrite.analysis.search.FindFlowBetweenMethods: + startMethodPattern: java.util.List add(..) endMethodPattern: java.util.List add(..) target: null flow: null diff --git a/docs/recipes/analysis/search/findmethods.md b/docs/recipes/analysis/search/findmethods.md index b71eec76a..bd9b1e0cf 100644 --- a/docs/recipes/analysis/search/findmethods.md +++ b/docs/recipes/analysis/search/findmethods.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindMethodsExample displayName: Find method usages example recipeList: - - org.openrewrite.analysis.search.FindMethods: methodPattern: java.util.List add(..) + - org.openrewrite.analysis.search.FindMethods: + methodPattern: java.util.List add(..) ``` Now that `com.yourorg.FindMethodsExample` has been defined, activate it and take a dependency on `org.openrewrite.meta:rewrite-analysis:{{VERSION_REWRITE_ANALYSIS}}` in your build file: diff --git a/docs/recipes/apache/httpclient5/addtimeunitargument.md b/docs/recipes/apache/httpclient5/addtimeunitargument.md index 81daa036b..58c4a4754 100644 --- a/docs/recipes/apache/httpclient5/addtimeunitargument.md +++ b/docs/recipes/apache/httpclient5/addtimeunitargument.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddTimeUnitArgumentExample displayName: Adds a TimeUnit argument to the matched method invocations example recipeList: - - org.openrewrite.apache.httpclient5.AddTimeUnitArgument: methodPattern: org.apache.http.client.config.RequestConfig.Builder setConnectionRequestTimeout(int) + - org.openrewrite.apache.httpclient5.AddTimeUnitArgument: + methodPattern: org.apache.http.client.config.RequestConfig.Builder setConnectionRequestTimeout(int) timeUnit: MILLISECONDS ``` diff --git a/docs/recipes/core/deletesourcefiles.md b/docs/recipes/core/deletesourcefiles.md index ec246f78c..5443d72e2 100644 --- a/docs/recipes/core/deletesourcefiles.md +++ b/docs/recipes/core/deletesourcefiles.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.DeleteSourceFilesExample displayName: Delete files example recipeList: - - org.openrewrite.DeleteSourceFiles: filePattern: .github/workflows/*.yml + - org.openrewrite.DeleteSourceFiles: + filePattern: .github/workflows/*.yml ``` Now that `com.yourorg.DeleteSourceFilesExample` has been defined, activate it in your build file: diff --git a/docs/recipes/core/excludefilefromgitignore.md b/docs/recipes/core/excludefilefromgitignore.md index fdb704bcc..d11511047 100644 --- a/docs/recipes/core/excludefilefromgitignore.md +++ b/docs/recipes/core/excludefilefromgitignore.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ExcludeFileFromGitignoreExample displayName: Remove ignoral of files or directories from .gitignore example recipeList: - - org.openrewrite.ExcludeFileFromGitignore: paths: /folder/file.txt + - org.openrewrite.ExcludeFileFromGitignore: + paths: /folder/file.txt ``` Now that `com.yourorg.ExcludeFileFromGitignoreExample` has been defined, activate it in your build file: diff --git a/docs/recipes/core/isinrepository.md b/docs/recipes/core/isinrepository.md index 70d367079..bf24eb125 100644 --- a/docs/recipes/core/isinrepository.md +++ b/docs/recipes/core/isinrepository.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.IsInRepositoryExample displayName: Is in repository example recipeList: - - org.openrewrite.IsInRepository: allowedRepositories: rewrite + - org.openrewrite.IsInRepository: + allowedRepositories: rewrite ``` Now that `com.yourorg.IsInRepositoryExample` has been defined, activate it in your build file: diff --git a/docs/recipes/core/renamefile.md b/docs/recipes/core/renamefile.md index cc18adde7..d46d02e29 100644 --- a/docs/recipes/core/renamefile.md +++ b/docs/recipes/core/renamefile.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RenameFileExample displayName: Rename a file example recipeList: - - org.openrewrite.RenameFile: fileMatcher: '**/application-*.yml' + - org.openrewrite.RenameFile: + fileMatcher: '**/application-*.yml' fileName: application.yml ``` diff --git a/docs/recipes/core/setfilepermissions.md b/docs/recipes/core/setfilepermissions.md index 861b3fe00..4d6bdfb86 100644 --- a/docs/recipes/core/setfilepermissions.md +++ b/docs/recipes/core/setfilepermissions.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.SetFilePermissionsExample displayName: Set file permission attributes example recipeList: - - org.openrewrite.SetFilePermissions: fileMatcher: '**/gradlew.bat' + - org.openrewrite.SetFilePermissions: + fileMatcher: '**/gradlew.bat' isReadable: null isWritable: null isExecutable: null diff --git a/docs/recipes/featureflags/ff4j/removecheck.md b/docs/recipes/featureflags/ff4j/removecheck.md index 8b5283e2d..cda519035 100644 --- a/docs/recipes/featureflags/ff4j/removecheck.md +++ b/docs/recipes/featureflags/ff4j/removecheck.md @@ -65,7 +65,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveCheckExample displayName: Remove FF4j's `check` for feature key example recipeList: - - org.openrewrite.featureflags.ff4j.RemoveCheck: featureKey: flag-key-123abc + - org.openrewrite.featureflags.ff4j.RemoveCheck: + featureKey: flag-key-123abc replacementValue: true ``` diff --git a/docs/recipes/featureflags/launchdarkly/changevariationdefault.md b/docs/recipes/featureflags/launchdarkly/changevariationdefault.md index f75c76104..8b70818ac 100644 --- a/docs/recipes/featureflags/launchdarkly/changevariationdefault.md +++ b/docs/recipes/featureflags/launchdarkly/changevariationdefault.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeVariationDefaultExample displayName: Change the default value for feature key example recipeList: - - org.openrewrite.featureflags.launchdarkly.ChangeVariationDefault: featureKey: flag-key-123abc + - org.openrewrite.featureflags.launchdarkly.ChangeVariationDefault: + featureKey: flag-key-123abc defaultValue: true ``` diff --git a/docs/recipes/featureflags/launchdarkly/removeboolvariation.md b/docs/recipes/featureflags/launchdarkly/removeboolvariation.md index e9667dc6a..d7b504530 100644 --- a/docs/recipes/featureflags/launchdarkly/removeboolvariation.md +++ b/docs/recipes/featureflags/launchdarkly/removeboolvariation.md @@ -65,7 +65,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveBoolVariationExample displayName: Remove LaunchDarkly's `boolVariation` for feature key example recipeList: - - org.openrewrite.featureflags.launchdarkly.RemoveBoolVariation: featureKey: flag-key-123abc + - org.openrewrite.featureflags.launchdarkly.RemoveBoolVariation: + featureKey: flag-key-123abc replacementValue: true ``` diff --git a/docs/recipes/featureflags/launchdarkly/removestringvariation.md b/docs/recipes/featureflags/launchdarkly/removestringvariation.md index 743d2aac4..369e3f274 100644 --- a/docs/recipes/featureflags/launchdarkly/removestringvariation.md +++ b/docs/recipes/featureflags/launchdarkly/removestringvariation.md @@ -65,7 +65,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveStringVariationExample displayName: Remove LaunchDarkly's `boolVariation` for feature key example recipeList: - - org.openrewrite.featureflags.launchdarkly.RemoveStringVariation: featureKey: flag-key-123abc + - org.openrewrite.featureflags.launchdarkly.RemoveStringVariation: + featureKey: flag-key-123abc replacementValue: topic-456 ``` diff --git a/docs/recipes/featureflags/openfeature/removegetbooleanvalue.md b/docs/recipes/featureflags/openfeature/removegetbooleanvalue.md index f1d86c758..f0fcb38fc 100644 --- a/docs/recipes/featureflags/openfeature/removegetbooleanvalue.md +++ b/docs/recipes/featureflags/openfeature/removegetbooleanvalue.md @@ -65,7 +65,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveGetBooleanValueExample displayName: Remove OpenFeature's `getBooleanValue` for feature key example recipeList: - - org.openrewrite.featureflags.openfeature.RemoveGetBooleanValue: featureKey: flag-key-123abc + - org.openrewrite.featureflags.openfeature.RemoveGetBooleanValue: + featureKey: flag-key-123abc replacementValue: true ``` diff --git a/docs/recipes/featureflags/removebooleanflag.md b/docs/recipes/featureflags/removebooleanflag.md index 415e4c3f4..5f3f31c88 100644 --- a/docs/recipes/featureflags/removebooleanflag.md +++ b/docs/recipes/featureflags/removebooleanflag.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveBooleanFlagExample displayName: Remove a boolean feature flag for feature key example recipeList: - - org.openrewrite.featureflags.RemoveBooleanFlag: methodPattern: dev.openfeature.sdk.Client getBooleanValue(String, Boolean) + - org.openrewrite.featureflags.RemoveBooleanFlag: + methodPattern: dev.openfeature.sdk.Client getBooleanValue(String, Boolean) featureKey: flag-key-123abc replacementValue: true ``` diff --git a/docs/recipes/featureflags/removestringflag.md b/docs/recipes/featureflags/removestringflag.md index a4ddc7270..d149331a3 100644 --- a/docs/recipes/featureflags/removestringflag.md +++ b/docs/recipes/featureflags/removestringflag.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveStringFlagExample displayName: Remove a String feature flag for feature key example recipeList: - - org.openrewrite.featureflags.RemoveStringFlag: methodPattern: dev.openfeature.sdk.Client getBooleanValue(String, Boolean) + - org.openrewrite.featureflags.RemoveStringFlag: + methodPattern: dev.openfeature.sdk.Client getBooleanValue(String, Boolean) featureKey: flag-key-123abc replacementValue: topic-456 ``` diff --git a/docs/recipes/featureflags/search/findfeatureflag.md b/docs/recipes/featureflags/search/findfeatureflag.md index 07e7b8826..2e8a67103 100644 --- a/docs/recipes/featureflags/search/findfeatureflag.md +++ b/docs/recipes/featureflags/search/findfeatureflag.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindFeatureFlagExample displayName: Find a feature flag example recipeList: - - org.openrewrite.featureflags.search.FindFeatureFlag: methodPattern: dev.openfeature.sdk.Client getBooleanValue(String, Boolean) + - org.openrewrite.featureflags.search.FindFeatureFlag: + methodPattern: dev.openfeature.sdk.Client getBooleanValue(String, Boolean) featureKey: flag-key-123abc ``` diff --git a/docs/recipes/featureflags/unleash/removeisenabled.md b/docs/recipes/featureflags/unleash/removeisenabled.md index 0865f1dc0..53f8c7569 100644 --- a/docs/recipes/featureflags/unleash/removeisenabled.md +++ b/docs/recipes/featureflags/unleash/removeisenabled.md @@ -65,7 +65,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveIsEnabledExample displayName: Remove Unleash's `isEnabled` for feature key example recipeList: - - org.openrewrite.featureflags.unleash.RemoveIsEnabled: featureKey: flag-key-123abc + - org.openrewrite.featureflags.unleash.RemoveIsEnabled: + featureKey: flag-key-123abc replacementValue: true ``` diff --git a/docs/recipes/gitlab/addcomponent.md b/docs/recipes/gitlab/addcomponent.md index 2f0a0a909..fcdce46c1 100644 --- a/docs/recipes/gitlab/addcomponent.md +++ b/docs/recipes/gitlab/addcomponent.md @@ -79,7 +79,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddComponentExample displayName: Add GitLab component example recipeList: - - org.openrewrite.gitlab.AddComponent: newComponent: $CI_SERVER_FQDN/components/opentofu/full-pipeline + - org.openrewrite.gitlab.AddComponent: + newComponent: $CI_SERVER_FQDN/components/opentofu/full-pipeline version: 0.10.0 inputs: opentofu_version: 1.6.1 ``` diff --git a/docs/recipes/gitlab/addstages.md b/docs/recipes/gitlab/addstages.md index 4a7a342d0..93fbdc2ac 100644 --- a/docs/recipes/gitlab/addstages.md +++ b/docs/recipes/gitlab/addstages.md @@ -73,7 +73,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddStagesExample displayName: Add GitLab stages example recipeList: - - org.openrewrite.gitlab.AddStages: stages: build,test,deploy + - org.openrewrite.gitlab.AddStages: + stages: build,test,deploy ``` Now that `com.yourorg.AddStagesExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-gitlab:{{VERSION_REWRITE_GITLAB}}` in your build file: diff --git a/docs/recipes/gitlab/addtemplate.md b/docs/recipes/gitlab/addtemplate.md index 7fb530f6a..299e0925e 100644 --- a/docs/recipes/gitlab/addtemplate.md +++ b/docs/recipes/gitlab/addtemplate.md @@ -72,7 +72,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddTemplateExample displayName: Add GitLab template example recipeList: - - org.openrewrite.gitlab.AddTemplate: newTemplate: OpenTofu/Base.gitlab-ci.yml + - org.openrewrite.gitlab.AddTemplate: + newTemplate: OpenTofu/Base.gitlab-ci.yml ``` Now that `com.yourorg.AddTemplateExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-gitlab:{{VERSION_REWRITE_GITLAB}}` in your build file: diff --git a/docs/recipes/gitlab/changetemplate.md b/docs/recipes/gitlab/changetemplate.md index 773c3ffa4..a97721a33 100644 --- a/docs/recipes/gitlab/changetemplate.md +++ b/docs/recipes/gitlab/changetemplate.md @@ -67,7 +67,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeTemplateExample displayName: Change GitLab template example recipeList: - - org.openrewrite.gitlab.ChangeTemplate: oldTemplate: Terraform/Base.gitlab-ci.yml + - org.openrewrite.gitlab.ChangeTemplate: + oldTemplate: Terraform/Base.gitlab-ci.yml newTemplate: OpenTofu/Base.gitlab-ci.yml ``` diff --git a/docs/recipes/gitlab/removetemplate.md b/docs/recipes/gitlab/removetemplate.md index 2ec6387fe..5b1459b10 100644 --- a/docs/recipes/gitlab/removetemplate.md +++ b/docs/recipes/gitlab/removetemplate.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveTemplateExample displayName: Remove GitLab template example recipeList: - - org.openrewrite.gitlab.RemoveTemplate: oldTemplate: Terraform/Base.gitlab-ci.yml + - org.openrewrite.gitlab.RemoveTemplate: + oldTemplate: Terraform/Base.gitlab-ci.yml ``` Now that `com.yourorg.RemoveTemplateExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-gitlab:{{VERSION_REWRITE_GITLAB}}` in your build file: diff --git a/docs/recipes/gitlab/search/findcomponent.md b/docs/recipes/gitlab/search/findcomponent.md index 2dadcf1a5..387e7d589 100644 --- a/docs/recipes/gitlab/search/findcomponent.md +++ b/docs/recipes/gitlab/search/findcomponent.md @@ -63,7 +63,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindComponentExample displayName: Find GitLab Component example recipeList: - - org.openrewrite.gitlab.search.FindComponent: component: $CI_SERVER_FQDN/components/opentofu/full-pipeline + - org.openrewrite.gitlab.search.FindComponent: + component: $CI_SERVER_FQDN/components/opentofu/full-pipeline ``` Now that `com.yourorg.FindComponentExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-gitlab:{{VERSION_REWRITE_GITLAB}}` in your build file: diff --git a/docs/recipes/gitlab/search/findtemplate.md b/docs/recipes/gitlab/search/findtemplate.md index d0bd0c60d..63c17780c 100644 --- a/docs/recipes/gitlab/search/findtemplate.md +++ b/docs/recipes/gitlab/search/findtemplate.md @@ -63,7 +63,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindTemplateExample displayName: Find GitLab Template example recipeList: - - org.openrewrite.gitlab.search.FindTemplate: template: Terraform/Base.gitlab-ci.yml + - org.openrewrite.gitlab.search.FindTemplate: + template: Terraform/Base.gitlab-ci.yml ``` Now that `com.yourorg.FindTemplateExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-gitlab:{{VERSION_REWRITE_GITLAB}}` in your build file: diff --git a/docs/recipes/gradle/adddependency.md b/docs/recipes/gradle/adddependency.md index 3ced3c85b..173dd090c 100644 --- a/docs/recipes/gradle/adddependency.md +++ b/docs/recipes/gradle/adddependency.md @@ -46,7 +46,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddDependencyExample displayName: Add Gradle dependency example recipeList: - - org.openrewrite.gradle.AddDependency: groupId: com.google.guava + - org.openrewrite.gradle.AddDependency: + groupId: com.google.guava artifactId: guava version: 29.X versionPattern: '-jre' diff --git a/docs/recipes/gradle/addproperty.md b/docs/recipes/gradle/addproperty.md index 9321b79e7..ad1f86fbe 100644 --- a/docs/recipes/gradle/addproperty.md +++ b/docs/recipes/gradle/addproperty.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddPropertyExample displayName: Add Gradle property example recipeList: - - org.openrewrite.gradle.AddProperty: key: org.gradle.caching + - org.openrewrite.gradle.AddProperty: + key: org.gradle.caching value: true overwrite: true filePattern: '**/*.properties' diff --git a/docs/recipes/gradle/changedependency.md b/docs/recipes/gradle/changedependency.md index 441a1a3bc..7bb742806 100644 --- a/docs/recipes/gradle/changedependency.md +++ b/docs/recipes/gradle/changedependency.md @@ -43,7 +43,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeDependencyExample displayName: Change Gradle dependency example recipeList: - - org.openrewrite.gradle.ChangeDependency: oldGroupId: org.openrewrite.recipe + - org.openrewrite.gradle.ChangeDependency: + oldGroupId: org.openrewrite.recipe oldArtifactId: rewrite-testing-frameworks newGroupId: corp.internal.openrewrite.recipe newArtifactId: rewrite-testing-frameworks diff --git a/docs/recipes/gradle/changedependencyartifactid.md b/docs/recipes/gradle/changedependencyartifactid.md index d3e47f79b..511dce025 100644 --- a/docs/recipes/gradle/changedependencyartifactid.md +++ b/docs/recipes/gradle/changedependencyartifactid.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeDependencyArtifactIdExample displayName: Change Gradle dependency artifact example recipeList: - - org.openrewrite.gradle.ChangeDependencyArtifactId: groupId: com.fasterxml.jackson* + - org.openrewrite.gradle.ChangeDependencyArtifactId: + groupId: com.fasterxml.jackson* artifactId: jackson-module* newArtifactId: jackson-custom configuration: api diff --git a/docs/recipes/gradle/changedependencyclassifier.md b/docs/recipes/gradle/changedependencyclassifier.md index 3222a9ecd..5a7a61acc 100644 --- a/docs/recipes/gradle/changedependencyclassifier.md +++ b/docs/recipes/gradle/changedependencyclassifier.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeDependencyClassifierExample displayName: Change a Gradle dependency classifier example recipeList: - - org.openrewrite.gradle.ChangeDependencyClassifier: groupId: com.fasterxml.jackson* + - org.openrewrite.gradle.ChangeDependencyClassifier: + groupId: com.fasterxml.jackson* artifactId: jackson-module* newClassifier: sources configuration: api diff --git a/docs/recipes/gradle/changedependencyconfiguration.md b/docs/recipes/gradle/changedependencyconfiguration.md index 4d8390981..1e1c977a9 100644 --- a/docs/recipes/gradle/changedependencyconfiguration.md +++ b/docs/recipes/gradle/changedependencyconfiguration.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeDependencyConfigurationExample displayName: Change a Gradle dependency configuration example recipeList: - - org.openrewrite.gradle.ChangeDependencyConfiguration: groupId: com.fasterxml.jackson* + - org.openrewrite.gradle.ChangeDependencyConfiguration: + groupId: com.fasterxml.jackson* artifactId: jackson-module* newConfiguration: api configuration: api diff --git a/docs/recipes/gradle/changedependencyextension.md b/docs/recipes/gradle/changedependencyextension.md index 3105d89f0..f5adb565e 100644 --- a/docs/recipes/gradle/changedependencyextension.md +++ b/docs/recipes/gradle/changedependencyextension.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeDependencyExtensionExample displayName: Change a Gradle dependency extension example recipeList: - - org.openrewrite.gradle.ChangeDependencyExtension: groupId: com.fasterxml.jackson* + - org.openrewrite.gradle.ChangeDependencyExtension: + groupId: com.fasterxml.jackson* artifactId: jackson-module* newExtension: jar configuration: api diff --git a/docs/recipes/gradle/changedependencygroupid.md b/docs/recipes/gradle/changedependencygroupid.md index 8b9dc4f1e..f53f99f92 100644 --- a/docs/recipes/gradle/changedependencygroupid.md +++ b/docs/recipes/gradle/changedependencygroupid.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeDependencyGroupIdExample displayName: Change Gradle dependency group example recipeList: - - org.openrewrite.gradle.ChangeDependencyGroupId: groupId: com.fasterxml.jackson* + - org.openrewrite.gradle.ChangeDependencyGroupId: + groupId: com.fasterxml.jackson* artifactId: jackson-module* newGroupId: corp.internal.jackson configuration: api diff --git a/docs/recipes/gradle/changeextraproperty.md b/docs/recipes/gradle/changeextraproperty.md index d0f0cd835..51f930132 100644 --- a/docs/recipes/gradle/changeextraproperty.md +++ b/docs/recipes/gradle/changeextraproperty.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeExtraPropertyExample displayName: Change Extra Property example recipeList: - - org.openrewrite.gradle.ChangeExtraProperty: key: foo + - org.openrewrite.gradle.ChangeExtraProperty: + key: foo value: bar ``` diff --git a/docs/recipes/gradle/plugins/addbuildplugin.md b/docs/recipes/gradle/plugins/addbuildplugin.md index fa80b5c33..89483b07a 100644 --- a/docs/recipes/gradle/plugins/addbuildplugin.md +++ b/docs/recipes/gradle/plugins/addbuildplugin.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddBuildPluginExample displayName: Add Gradle plugin example recipeList: - - org.openrewrite.gradle.plugins.AddBuildPlugin: pluginId: com.jfrog.bintray + - org.openrewrite.gradle.plugins.AddBuildPlugin: + pluginId: com.jfrog.bintray version: 3.x versionPattern: '-jre' ``` diff --git a/docs/recipes/gradle/plugins/addsettingsplugin.md b/docs/recipes/gradle/plugins/addsettingsplugin.md index 882930878..b4480a65c 100644 --- a/docs/recipes/gradle/plugins/addsettingsplugin.md +++ b/docs/recipes/gradle/plugins/addsettingsplugin.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddSettingsPluginExample displayName: Add Gradle settings plugin example recipeList: - - org.openrewrite.gradle.plugins.AddSettingsPlugin: pluginId: com.jfrog.bintray + - org.openrewrite.gradle.plugins.AddSettingsPlugin: + pluginId: com.jfrog.bintray version: 3.x versionPattern: '-jre' ``` diff --git a/docs/recipes/gradle/plugins/addsettingspluginrepository.md b/docs/recipes/gradle/plugins/addsettingspluginrepository.md index c140dd7b1..0ec21ad2b 100644 --- a/docs/recipes/gradle/plugins/addsettingspluginrepository.md +++ b/docs/recipes/gradle/plugins/addsettingspluginrepository.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddSettingsPluginRepositoryExample displayName: Add a Gradle settings repository example recipeList: - - org.openrewrite.gradle.plugins.AddSettingsPluginRepository: type: maven + - org.openrewrite.gradle.plugins.AddSettingsPluginRepository: + type: maven url: https://repo.spring.io ``` diff --git a/docs/recipes/gradle/plugins/changeplugin.md b/docs/recipes/gradle/plugins/changeplugin.md index 9afff2d5f..263c7f2d6 100644 --- a/docs/recipes/gradle/plugins/changeplugin.md +++ b/docs/recipes/gradle/plugins/changeplugin.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangePluginExample displayName: Change a Gradle plugin example recipeList: - - org.openrewrite.gradle.plugins.ChangePlugin: pluginId: org.openrewrite.rewrite + - org.openrewrite.gradle.plugins.ChangePlugin: + pluginId: org.openrewrite.rewrite newPluginId: org.openrewrite.rewrite newVersion: 7.x ``` diff --git a/docs/recipes/gradle/plugins/changepluginversion.md b/docs/recipes/gradle/plugins/changepluginversion.md index aef6a4276..e08892190 100644 --- a/docs/recipes/gradle/plugins/changepluginversion.md +++ b/docs/recipes/gradle/plugins/changepluginversion.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangePluginVersionExample displayName: Change a Gradle plugin version by id example recipeList: - - org.openrewrite.gradle.plugins.ChangePluginVersion: pluginIdPattern: com.jfrog.bintray + - org.openrewrite.gradle.plugins.ChangePluginVersion: + pluginIdPattern: com.jfrog.bintray newVersion: 29.X versionPattern: '-jre' ``` diff --git a/docs/recipes/gradle/plugins/removebuildplugin.md b/docs/recipes/gradle/plugins/removebuildplugin.md index 15f4095fd..95a82093b 100644 --- a/docs/recipes/gradle/plugins/removebuildplugin.md +++ b/docs/recipes/gradle/plugins/removebuildplugin.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveBuildPluginExample displayName: Remove Gradle plugin example recipeList: - - org.openrewrite.gradle.plugins.RemoveBuildPlugin: pluginId: com.jfrog.bintray + - org.openrewrite.gradle.plugins.RemoveBuildPlugin: + pluginId: com.jfrog.bintray ``` Now that `com.yourorg.RemoveBuildPluginExample` has been defined, activate it in your build file: diff --git a/docs/recipes/gradle/plugins/removesettingsplugin.md b/docs/recipes/gradle/plugins/removesettingsplugin.md index 5b77d94f8..2563d796d 100644 --- a/docs/recipes/gradle/plugins/removesettingsplugin.md +++ b/docs/recipes/gradle/plugins/removesettingsplugin.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveSettingsPluginExample displayName: Remove Gradle settings plugin example recipeList: - - org.openrewrite.gradle.plugins.RemoveSettingsPlugin: pluginId: com.jfrog.bintray + - org.openrewrite.gradle.plugins.RemoveSettingsPlugin: + pluginId: com.jfrog.bintray ``` Now that `com.yourorg.RemoveSettingsPluginExample` has been defined, activate it in your build file: diff --git a/docs/recipes/gradle/plugins/upgradepluginversion.md b/docs/recipes/gradle/plugins/upgradepluginversion.md index 3dd70437b..abf0e5e17 100644 --- a/docs/recipes/gradle/plugins/upgradepluginversion.md +++ b/docs/recipes/gradle/plugins/upgradepluginversion.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpgradePluginVersionExample displayName: Update a Gradle plugin by id example recipeList: - - org.openrewrite.gradle.plugins.UpgradePluginVersion: pluginIdPattern: com.jfrog.bintray + - org.openrewrite.gradle.plugins.UpgradePluginVersion: + pluginIdPattern: com.jfrog.bintray newVersion: 29.X versionPattern: '-jre' ``` diff --git a/docs/recipes/gradle/removedependency.md b/docs/recipes/gradle/removedependency.md index af7989deb..a084690ec 100644 --- a/docs/recipes/gradle/removedependency.md +++ b/docs/recipes/gradle/removedependency.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveDependencyExample displayName: Remove a Gradle dependency example recipeList: - - org.openrewrite.gradle.RemoveDependency: groupId: com.fasterxml.jackson* + - org.openrewrite.gradle.RemoveDependency: + groupId: com.fasterxml.jackson* artifactId: jackson-module* configuration: api ``` diff --git a/docs/recipes/gradle/removeenablefeaturepreview.md b/docs/recipes/gradle/removeenablefeaturepreview.md index fcf202d5b..5dfe23349 100644 --- a/docs/recipes/gradle/removeenablefeaturepreview.md +++ b/docs/recipes/gradle/removeenablefeaturepreview.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveEnableFeaturePreviewExample displayName: Remove an enabled Gradle preview feature example recipeList: - - org.openrewrite.gradle.RemoveEnableFeaturePreview: previewFeatureName: ONE_LOCKFILE_PER_PROJECT + - org.openrewrite.gradle.RemoveEnableFeaturePreview: + previewFeatureName: ONE_LOCKFILE_PER_PROJECT ``` Now that `com.yourorg.RemoveEnableFeaturePreviewExample` has been defined, activate it in your build file: diff --git a/docs/recipes/gradle/removerepository.md b/docs/recipes/gradle/removerepository.md index 7457c5dd5..d32eb2f9e 100644 --- a/docs/recipes/gradle/removerepository.md +++ b/docs/recipes/gradle/removerepository.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveRepositoryExample displayName: Remove repository example recipeList: - - org.openrewrite.gradle.RemoveRepository: repository: jcenter + - org.openrewrite.gradle.RemoveRepository: + repository: jcenter ``` Now that `com.yourorg.RemoveRepositoryExample` has been defined, activate it in your build file: diff --git a/docs/recipes/gradle/search/dependencyinsight.md b/docs/recipes/gradle/search/dependencyinsight.md index b39677d70..ae5366af5 100644 --- a/docs/recipes/gradle/search/dependencyinsight.md +++ b/docs/recipes/gradle/search/dependencyinsight.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.DependencyInsightExample displayName: Gradle dependency insight example recipeList: - - org.openrewrite.gradle.search.DependencyInsight: groupIdPattern: com.fasterxml.jackson.module + - org.openrewrite.gradle.search.DependencyInsight: + groupIdPattern: com.fasterxml.jackson.module artifactIdPattern: jackson-module-* version: 1.x configuration: compileClasspath diff --git a/docs/recipes/gradle/search/finddependency.md b/docs/recipes/gradle/search/finddependency.md index 90c181504..f61c372bb 100644 --- a/docs/recipes/gradle/search/finddependency.md +++ b/docs/recipes/gradle/search/finddependency.md @@ -47,7 +47,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindDependencyExample displayName: Find Gradle dependency example recipeList: - - org.openrewrite.gradle.search.FindDependency: groupId: com.google.guava + - org.openrewrite.gradle.search.FindDependency: + groupId: com.google.guava artifactId: guava configuration: api ``` diff --git a/docs/recipes/gradle/search/findgradleproject.md b/docs/recipes/gradle/search/findgradleproject.md index fef2eb25d..88f39c846 100644 --- a/docs/recipes/gradle/search/findgradleproject.md +++ b/docs/recipes/gradle/search/findgradleproject.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindGradleProjectExample displayName: Find Gradle projects example recipeList: - - org.openrewrite.gradle.search.FindGradleProject: searchCriteria: Marker + - org.openrewrite.gradle.search.FindGradleProject: + searchCriteria: Marker ``` Now that `com.yourorg.FindGradleProjectExample` has been defined, activate it in your build file: diff --git a/docs/recipes/gradle/search/findplugins.md b/docs/recipes/gradle/search/findplugins.md index 836305df2..2c73d49fc 100644 --- a/docs/recipes/gradle/search/findplugins.md +++ b/docs/recipes/gradle/search/findplugins.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindPluginsExample displayName: Find Gradle plugin example recipeList: - - org.openrewrite.gradle.search.FindPlugins: pluginId: '`com.jfrog.bintray`' + - org.openrewrite.gradle.search.FindPlugins: + pluginId: '`com.jfrog.bintray`' ``` Now that `com.yourorg.FindPluginsExample` has been defined, activate it in your build file: diff --git a/docs/recipes/gradle/updatejavacompatibility.md b/docs/recipes/gradle/updatejavacompatibility.md index 2083e6ba7..cffc7a658 100644 --- a/docs/recipes/gradle/updatejavacompatibility.md +++ b/docs/recipes/gradle/updatejavacompatibility.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpdateJavaCompatibilityExample displayName: Update Gradle project Java compatibility example recipeList: - - org.openrewrite.gradle.UpdateJavaCompatibility: version: 11 + - org.openrewrite.gradle.UpdateJavaCompatibility: + version: 11 ``` Now that `com.yourorg.UpdateJavaCompatibilityExample` has been defined, activate it in your build file: diff --git a/docs/recipes/gradle/upgradedependencyversion.md b/docs/recipes/gradle/upgradedependencyversion.md index 4fad9b175..eb8b48287 100644 --- a/docs/recipes/gradle/upgradedependencyversion.md +++ b/docs/recipes/gradle/upgradedependencyversion.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpgradeDependencyVersionExample displayName: Upgrade Gradle dependency versions example recipeList: - - org.openrewrite.gradle.UpgradeDependencyVersion: groupId: com.fasterxml.jackson* + - org.openrewrite.gradle.UpgradeDependencyVersion: + groupId: com.fasterxml.jackson* artifactId: jackson-module* newVersion: 29.X versionPattern: '-jre' diff --git a/docs/recipes/gradle/upgradetransitivedependencyversion.md b/docs/recipes/gradle/upgradetransitivedependencyversion.md index fa9a224a6..94c376a8b 100644 --- a/docs/recipes/gradle/upgradetransitivedependencyversion.md +++ b/docs/recipes/gradle/upgradetransitivedependencyversion.md @@ -42,7 +42,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpgradeTransitiveDependencyVersionExample displayName: Upgrade transitive Gradle dependencies example recipeList: - - org.openrewrite.gradle.UpgradeTransitiveDependencyVersion: groupId: com.fasterxml.jackson* + - org.openrewrite.gradle.UpgradeTransitiveDependencyVersion: + groupId: com.fasterxml.jackson* artifactId: jackson-module* version: 29.X versionPattern: '-jre' diff --git a/docs/recipes/hcl/deletecontent.md b/docs/recipes/hcl/deletecontent.md index 0bfcd4098..1d3765ed2 100644 --- a/docs/recipes/hcl/deletecontent.md +++ b/docs/recipes/hcl/deletecontent.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.DeleteContentExample displayName: Delete content example recipeList: - - org.openrewrite.hcl.DeleteContent: contentPath: $.provider + - org.openrewrite.hcl.DeleteContent: + contentPath: $.provider ``` Now that `com.yourorg.DeleteContentExample` has been defined, activate it in your build file: diff --git a/docs/recipes/hcl/movecontenttofile.md b/docs/recipes/hcl/movecontenttofile.md index 96bd6878c..0916844a0 100644 --- a/docs/recipes/hcl/movecontenttofile.md +++ b/docs/recipes/hcl/movecontenttofile.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.MoveContentToFileExample displayName: Move content to another file example recipeList: - - org.openrewrite.hcl.MoveContentToFile: contentPath: $.provider + - org.openrewrite.hcl.MoveContentToFile: + contentPath: $.provider fromPath: from.tf destinationPath: to.tf ``` diff --git a/docs/recipes/hcl/search/findandreplaceliteral.md b/docs/recipes/hcl/search/findandreplaceliteral.md index 859925836..1016cc23c 100644 --- a/docs/recipes/hcl/search/findandreplaceliteral.md +++ b/docs/recipes/hcl/search/findandreplaceliteral.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindAndReplaceLiteralExample displayName: Find and replace literals in HCL files example recipeList: - - org.openrewrite.hcl.search.FindAndReplaceLiteral: find: blacklist + - org.openrewrite.hcl.search.FindAndReplaceLiteral: + find: blacklist replace: denylist ``` diff --git a/docs/recipes/hcl/search/findcontent.md b/docs/recipes/hcl/search/findcontent.md index 398f0e37c..a3c71806f 100644 --- a/docs/recipes/hcl/search/findcontent.md +++ b/docs/recipes/hcl/search/findcontent.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindContentExample displayName: Find content example recipeList: - - org.openrewrite.hcl.search.FindContent: contentPath: $.provider + - org.openrewrite.hcl.search.FindContent: + contentPath: $.provider ``` Now that `com.yourorg.FindContentExample` has been defined, activate it in your build file: diff --git a/docs/recipes/io/quarkus/updates/core/quarkus37/addmavencompilerannotationprocessor.md b/docs/recipes/io/quarkus/updates/core/quarkus37/addmavencompilerannotationprocessor.md index e1f1165e5..8bd08624e 100644 --- a/docs/recipes/io/quarkus/updates/core/quarkus37/addmavencompilerannotationprocessor.md +++ b/docs/recipes/io/quarkus/updates/core/quarkus37/addmavencompilerannotationprocessor.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddMavenCompilerAnnotationProcessorExample displayName: Add an annotation processor to the Maven Compiler plugin configuration example recipeList: - - io.quarkus.updates.core.quarkus37.AddMavenCompilerAnnotationProcessor: groupId: org.hibernate.orm + - io.quarkus.updates.core.quarkus37.AddMavenCompilerAnnotationProcessor: + groupId: org.hibernate.orm artifactId: hibernate-jpamodelgen mavenCompilerPluginVersion: hibernate-jpamodelgen ``` diff --git a/docs/recipes/io/quarkus/updates/core/quarkus37/changemavencompilerannotationprocessorgroupidandartifactid.md b/docs/recipes/io/quarkus/updates/core/quarkus37/changemavencompilerannotationprocessorgroupidandartifactid.md index a2a6a54a7..555b220c1 100644 --- a/docs/recipes/io/quarkus/updates/core/quarkus37/changemavencompilerannotationprocessorgroupidandartifactid.md +++ b/docs/recipes/io/quarkus/updates/core/quarkus37/changemavencompilerannotationprocessorgroupidandartifactid.md @@ -44,7 +44,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeMavenCompilerAnnotationProcessorGroupIdAndArtifactIdExample displayName: Change Maven Compiler plugin annotation processor groupId, artifactId and/or the version example recipeList: - - io.quarkus.updates.core.quarkus37.ChangeMavenCompilerAnnotationProcessorGroupIdAndArtifactId: oldGroupId: org.hibernate + - io.quarkus.updates.core.quarkus37.ChangeMavenCompilerAnnotationProcessorGroupIdAndArtifactId: + oldGroupId: org.hibernate oldArtifactId: hibernate-jpamodelgen newGroupId: org.hibernate.orm newArtifactId: hibernate-jpamodelgen diff --git a/docs/recipes/io/quarkus/updates/core/quarkus37/syncmavencompilerannotationprocessorversion.md b/docs/recipes/io/quarkus/updates/core/quarkus37/syncmavencompilerannotationprocessorversion.md index ed9f19d77..f564993b9 100644 --- a/docs/recipes/io/quarkus/updates/core/quarkus37/syncmavencompilerannotationprocessorversion.md +++ b/docs/recipes/io/quarkus/updates/core/quarkus37/syncmavencompilerannotationprocessorversion.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.SyncMavenCompilerAnnotationProcessorVersionExample displayName: Sync Maven Compiler plugin annotation processor version with the one provided by the BOM example recipeList: - - io.quarkus.updates.core.quarkus37.SyncMavenCompilerAnnotationProcessorVersion: groupId: org.hibernate.orm + - io.quarkus.updates.core.quarkus37.SyncMavenCompilerAnnotationProcessorVersion: + groupId: org.hibernate.orm artifactId: hibernate-jpamodelgen ``` diff --git a/docs/recipes/io/quarkus/updates/core/quarkus39/removemavencompilerannotationprocessor.md b/docs/recipes/io/quarkus/updates/core/quarkus39/removemavencompilerannotationprocessor.md index 674d50022..f24f36ff1 100644 --- a/docs/recipes/io/quarkus/updates/core/quarkus39/removemavencompilerannotationprocessor.md +++ b/docs/recipes/io/quarkus/updates/core/quarkus39/removemavencompilerannotationprocessor.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveMavenCompilerAnnotationProcessorExample displayName: Remove an annotation processor from the Maven Compiler plugin configuration example recipeList: - - io.quarkus.updates.core.quarkus39.RemoveMavenCompilerAnnotationProcessor: groupId: org.hibernate.orm + - io.quarkus.updates.core.quarkus39.RemoveMavenCompilerAnnotationProcessor: + groupId: org.hibernate.orm artifactId: hibernate-jpamodelgen processorClass: com.example.MyProcessor ``` diff --git a/docs/recipes/java/addcommenttomethod.md b/docs/recipes/java/addcommenttomethod.md index 68205be15..76f8be0be 100644 --- a/docs/recipes/java/addcommenttomethod.md +++ b/docs/recipes/java/addcommenttomethod.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddCommentToMethodExample displayName: Add comment example recipeList: - - org.openrewrite.java.AddCommentToMethod: comment: This is a comment. + - org.openrewrite.java.AddCommentToMethod: + comment: This is a comment. methodPattern: java.util.List add*(..) ``` diff --git a/docs/recipes/java/addlicenseheader.md b/docs/recipes/java/addlicenseheader.md index 69ac8d2d5..406d37581 100644 --- a/docs/recipes/java/addlicenseheader.md +++ b/docs/recipes/java/addlicenseheader.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddLicenseHeaderExample displayName: Add license header example recipeList: - - org.openrewrite.java.AddLicenseHeader: licenseText: Copyright ${CURRENT_YEAR} the original author or authors... + - org.openrewrite.java.AddLicenseHeader: + licenseText: Copyright ${CURRENT_YEAR} the original author or authors... ``` Now that `com.yourorg.AddLicenseHeaderExample` has been defined, activate it in your build file: diff --git a/docs/recipes/java/addliteralmethodargument.md b/docs/recipes/java/addliteralmethodargument.md index 6aef86917..3629d523e 100644 --- a/docs/recipes/java/addliteralmethodargument.md +++ b/docs/recipes/java/addliteralmethodargument.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddLiteralMethodArgumentExample displayName: Add a literal method argument example recipeList: - - org.openrewrite.java.AddLiteralMethodArgument: methodPattern: com.yourorg.A foo(int, int) + - org.openrewrite.java.AddLiteralMethodArgument: + methodPattern: com.yourorg.A foo(int, int) argumentIndex: 0 literal: abc primitiveType: String diff --git a/docs/recipes/java/addmethodparameter.md b/docs/recipes/java/addmethodparameter.md index 7b23d6cc4..ddb810123 100644 --- a/docs/recipes/java/addmethodparameter.md +++ b/docs/recipes/java/addmethodparameter.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddMethodParameterExample displayName: Add method parameter to a method declaration example recipeList: - - org.openrewrite.java.AddMethodParameter: methodPattern: com.yourorg.A foo(int, int) + - org.openrewrite.java.AddMethodParameter: + methodPattern: com.yourorg.A foo(int, int) parameterType: java.lang.String parameterName: name parameterIndex: 0 diff --git a/docs/recipes/java/addnullmethodargument.md b/docs/recipes/java/addnullmethodargument.md index 02938e826..10d427c96 100644 --- a/docs/recipes/java/addnullmethodargument.md +++ b/docs/recipes/java/addnullmethodargument.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddNullMethodArgumentExample displayName: Add a `null` method argument example recipeList: - - org.openrewrite.java.AddNullMethodArgument: methodPattern: com.yourorg.A foo(int, int) + - org.openrewrite.java.AddNullMethodArgument: + methodPattern: com.yourorg.A foo(int, int) argumentIndex: 0 parameterType: java.lang.String parameterName: name diff --git a/docs/recipes/java/addorupdateannotationattribute.md b/docs/recipes/java/addorupdateannotationattribute.md index 795eafd04..b52dca295 100644 --- a/docs/recipes/java/addorupdateannotationattribute.md +++ b/docs/recipes/java/addorupdateannotationattribute.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddOrUpdateAnnotationAttributeExample displayName: Add or update annotation attribute example recipeList: - - org.openrewrite.java.AddOrUpdateAnnotationAttribute: annotationType: org.junit.Test + - org.openrewrite.java.AddOrUpdateAnnotationAttribute: + annotationType: org.junit.Test attributeName: timeout attributeValue: 500 addOnly: null diff --git a/docs/recipes/java/changeannotationattributename.md b/docs/recipes/java/changeannotationattributename.md index 3fe827cd1..faa15d54d 100644 --- a/docs/recipes/java/changeannotationattributename.md +++ b/docs/recipes/java/changeannotationattributename.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeAnnotationAttributeNameExample displayName: Change annotation attribute name example recipeList: - - org.openrewrite.java.ChangeAnnotationAttributeName: annotationType: org.junit.Test + - org.openrewrite.java.ChangeAnnotationAttributeName: + annotationType: org.junit.Test oldAttributeName: timeout newAttributeName: waitFor ``` diff --git a/docs/recipes/java/changemethodaccesslevel.md b/docs/recipes/java/changemethodaccesslevel.md index 264653225..2186a312d 100644 --- a/docs/recipes/java/changemethodaccesslevel.md +++ b/docs/recipes/java/changemethodaccesslevel.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeMethodAccessLevelExample displayName: Change method access level example recipeList: - - org.openrewrite.java.ChangeMethodAccessLevel: methodPattern: org.mockito.Matchers anyVararg() + - org.openrewrite.java.ChangeMethodAccessLevel: + methodPattern: org.mockito.Matchers anyVararg() newAccessLevel: public ``` diff --git a/docs/recipes/java/changemethodname.md b/docs/recipes/java/changemethodname.md index 04c6cb380..a0a7ccd2a 100644 --- a/docs/recipes/java/changemethodname.md +++ b/docs/recipes/java/changemethodname.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeMethodNameExample displayName: Change method name example recipeList: - - org.openrewrite.java.ChangeMethodName: methodPattern: org.mockito.Matchers anyVararg() + - org.openrewrite.java.ChangeMethodName: + methodPattern: org.mockito.Matchers anyVararg() newMethodName: any ``` diff --git a/docs/recipes/java/changemethodtargettostatic.md b/docs/recipes/java/changemethodtargettostatic.md index 2720d37ea..c5452fb7c 100644 --- a/docs/recipes/java/changemethodtargettostatic.md +++ b/docs/recipes/java/changemethodtargettostatic.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeMethodTargetToStaticExample displayName: Change method target to static example recipeList: - - org.openrewrite.java.ChangeMethodTargetToStatic: methodPattern: com.google.common.collect.ImmutableSet of(..) + - org.openrewrite.java.ChangeMethodTargetToStatic: + methodPattern: com.google.common.collect.ImmutableSet of(..) fullyQualifiedTargetTypeName: java.util.Set returnType: java.util.Set ``` diff --git a/docs/recipes/java/changemethodtargettovariable.md b/docs/recipes/java/changemethodtargettovariable.md index 9c7faca73..82ea93f38 100644 --- a/docs/recipes/java/changemethodtargettovariable.md +++ b/docs/recipes/java/changemethodtargettovariable.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeMethodTargetToVariableExample displayName: Change method target to variable example recipeList: - - org.openrewrite.java.ChangeMethodTargetToVariable: methodPattern: org.mycorp.A method(..) + - org.openrewrite.java.ChangeMethodTargetToVariable: + methodPattern: org.mycorp.A method(..) variableName: foo variableType: java.lang.String ``` diff --git a/docs/recipes/java/changepackage.md b/docs/recipes/java/changepackage.md index b9a80ba05..e8df15be1 100644 --- a/docs/recipes/java/changepackage.md +++ b/docs/recipes/java/changepackage.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangePackageExample displayName: Rename package name example recipeList: - - org.openrewrite.java.ChangePackage: oldPackageName: com.yourorg.foo + - org.openrewrite.java.ChangePackage: + oldPackageName: com.yourorg.foo newPackageName: com.yourorg.bar ``` diff --git a/docs/recipes/java/changestaticfieldtomethod.md b/docs/recipes/java/changestaticfieldtomethod.md index 31282a922..9ccca9e6e 100644 --- a/docs/recipes/java/changestaticfieldtomethod.md +++ b/docs/recipes/java/changestaticfieldtomethod.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeStaticFieldToMethodExample displayName: Change static field access to static method access example recipeList: - - org.openrewrite.java.ChangeStaticFieldToMethod: oldClassName: java.util.Collections + - org.openrewrite.java.ChangeStaticFieldToMethod: + oldClassName: java.util.Collections oldFieldName: EMPTY_LIST newClassName: java.util.List newTarget: OK_RESPONSE diff --git a/docs/recipes/java/changetype.md b/docs/recipes/java/changetype.md index cb2a0078e..d704c5185 100644 --- a/docs/recipes/java/changetype.md +++ b/docs/recipes/java/changetype.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeTypeExample displayName: Change type example recipeList: - - org.openrewrite.java.ChangeType: oldFullyQualifiedTypeName: org.junit.Assume + - org.openrewrite.java.ChangeType: + oldFullyQualifiedTypeName: org.junit.Assume newFullyQualifiedTypeName: org.junit.jupiter.api.Assumptions ``` diff --git a/docs/recipes/java/createemptyjavaclass.md b/docs/recipes/java/createemptyjavaclass.md index df5a891e3..0f7f396ce 100644 --- a/docs/recipes/java/createemptyjavaclass.md +++ b/docs/recipes/java/createemptyjavaclass.md @@ -42,7 +42,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.CreateEmptyJavaClassExample displayName: Create Java class example recipeList: - - org.openrewrite.java.CreateEmptyJavaClass: sourceRoot: src/main/java + - org.openrewrite.java.CreateEmptyJavaClass: + sourceRoot: src/main/java packageName: org.openrewrite.example modifier: public className: ExampleClass diff --git a/docs/recipes/java/deletemethodargument.md b/docs/recipes/java/deletemethodargument.md index 0c000f244..2c5bc47b9 100644 --- a/docs/recipes/java/deletemethodargument.md +++ b/docs/recipes/java/deletemethodargument.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.DeleteMethodArgumentExample displayName: Delete method argument example recipeList: - - org.openrewrite.java.DeleteMethodArgument: methodPattern: com.yourorg.A foo(int, int) + - org.openrewrite.java.DeleteMethodArgument: + methodPattern: com.yourorg.A foo(int, int) argumentIndex: 0 ``` diff --git a/docs/recipes/java/dependencies/adddependency.md b/docs/recipes/java/dependencies/adddependency.md index 5cd6e8692..ee4d9c66f 100644 --- a/docs/recipes/java/dependencies/adddependency.md +++ b/docs/recipes/java/dependencies/adddependency.md @@ -50,7 +50,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddDependencyExample displayName: Add Gradle or Maven dependency example recipeList: - - org.openrewrite.java.dependencies.AddDependency: groupId: com.google.guava + - org.openrewrite.java.dependencies.AddDependency: + groupId: com.google.guava artifactId: guava version: 29.X versionPattern: '-jre' diff --git a/docs/recipes/java/dependencies/changedependency.md b/docs/recipes/java/dependencies/changedependency.md index 1a536de63..1d43ba5bf 100644 --- a/docs/recipes/java/dependencies/changedependency.md +++ b/docs/recipes/java/dependencies/changedependency.md @@ -44,7 +44,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeDependencyExample displayName: Change Gradle or Maven dependency example recipeList: - - org.openrewrite.java.dependencies.ChangeDependency: oldGroupId: org.openrewrite.recipe + - org.openrewrite.java.dependencies.ChangeDependency: + oldGroupId: org.openrewrite.recipe oldArtifactId: rewrite-testing-frameworks newGroupId: corp.internal.openrewrite.recipe newArtifactId: rewrite-testing-frameworks diff --git a/docs/recipes/java/dependencies/dependencyinsight.md b/docs/recipes/java/dependencies/dependencyinsight.md index d0677cea3..d27a90ed7 100644 --- a/docs/recipes/java/dependencies/dependencyinsight.md +++ b/docs/recipes/java/dependencies/dependencyinsight.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.DependencyInsightExample displayName: Dependency insight for Gradle and Maven example recipeList: - - org.openrewrite.java.dependencies.DependencyInsight: groupIdPattern: com.fasterxml.jackson* + - org.openrewrite.java.dependencies.DependencyInsight: + groupIdPattern: com.fasterxml.jackson* artifactIdPattern: jackson-* version: 1.x scope: compile diff --git a/docs/recipes/java/dependencies/dependencylist.md b/docs/recipes/java/dependencies/dependencylist.md index 647ee621b..d5286bd23 100644 --- a/docs/recipes/java/dependencies/dependencylist.md +++ b/docs/recipes/java/dependencies/dependencylist.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.DependencyListExample displayName: Dependency report example recipeList: - - org.openrewrite.java.dependencies.DependencyList: scope: Compile + - org.openrewrite.java.dependencies.DependencyList: + scope: Compile includeTransitive: false ``` diff --git a/docs/recipes/java/dependencies/removedependency.md b/docs/recipes/java/dependencies/removedependency.md index b9911780e..3b5a3b809 100644 --- a/docs/recipes/java/dependencies/removedependency.md +++ b/docs/recipes/java/dependencies/removedependency.md @@ -45,7 +45,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveDependencyExample displayName: Remove a Gradle or Maven dependency example recipeList: - - org.openrewrite.java.dependencies.RemoveDependency: groupId: com.fasterxml.jackson* + - org.openrewrite.java.dependencies.RemoveDependency: + groupId: com.fasterxml.jackson* artifactId: jackson-module* unlessUsing: org.aspectj.lang.* configuration: api diff --git a/docs/recipes/java/dependencies/search/findminimumdependencyversion.md b/docs/recipes/java/dependencies/search/findminimumdependencyversion.md index a41515c26..3dbbc623c 100644 --- a/docs/recipes/java/dependencies/search/findminimumdependencyversion.md +++ b/docs/recipes/java/dependencies/search/findminimumdependencyversion.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindMinimumDependencyVersionExample displayName: Find the oldest matching dependency version in use example recipeList: - - org.openrewrite.java.dependencies.search.FindMinimumDependencyVersion: groupIdPattern: com.fasterxml.jackson.module + - org.openrewrite.java.dependencies.search.FindMinimumDependencyVersion: + groupIdPattern: com.fasterxml.jackson.module artifactIdPattern: jackson-module-* version: 1.x ``` diff --git a/docs/recipes/java/dependencies/upgradedependencyversion.md b/docs/recipes/java/dependencies/upgradedependencyversion.md index dcca3bae1..492d8960f 100644 --- a/docs/recipes/java/dependencies/upgradedependencyversion.md +++ b/docs/recipes/java/dependencies/upgradedependencyversion.md @@ -42,7 +42,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpgradeDependencyVersionExample displayName: Upgrade Gradle or Maven dependency versions example recipeList: - - org.openrewrite.java.dependencies.UpgradeDependencyVersion: groupId: com.fasterxml.jackson* + - org.openrewrite.java.dependencies.UpgradeDependencyVersion: + groupId: com.fasterxml.jackson* artifactId: jackson-module* newVersion: 29.X versionPattern: '-jre' diff --git a/docs/recipes/java/dependencies/upgradetransitivedependencyversion.md b/docs/recipes/java/dependencies/upgradetransitivedependencyversion.md index 2bbea0edd..2d4d2e537 100644 --- a/docs/recipes/java/dependencies/upgradetransitivedependencyversion.md +++ b/docs/recipes/java/dependencies/upgradetransitivedependencyversion.md @@ -47,7 +47,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpgradeTransitiveDependencyVersionExample displayName: Upgrade transitive Gradle or Maven dependencies example recipeList: - - org.openrewrite.java.dependencies.UpgradeTransitiveDependencyVersion: groupId: org.apache.logging.log4j + - org.openrewrite.java.dependencies.UpgradeTransitiveDependencyVersion: + groupId: org.apache.logging.log4j artifactId: log4j-bom version: latest.release scope: import diff --git a/docs/recipes/java/logging/parameterizedlogging.md b/docs/recipes/java/logging/parameterizedlogging.md index 541af2df4..f5bbfbf05 100644 --- a/docs/recipes/java/logging/parameterizedlogging.md +++ b/docs/recipes/java/logging/parameterizedlogging.md @@ -46,7 +46,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ParameterizedLoggingExample displayName: Parameterize logging statements example recipeList: - - org.openrewrite.java.logging.ParameterizedLogging: methodPattern: org.slf4j.Logger info(..) + - org.openrewrite.java.logging.ParameterizedLogging: + methodPattern: org.slf4j.Logger info(..) ``` Now that `com.yourorg.ParameterizedLoggingExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-logging-frameworks:{{VERSION_REWRITE_LOGGING_FRAMEWORKS}}` in your build file: diff --git a/docs/recipes/java/logging/slf4j/changeloglevel.md b/docs/recipes/java/logging/slf4j/changeloglevel.md index 7f9d121e3..d8b1d25c9 100644 --- a/docs/recipes/java/logging/slf4j/changeloglevel.md +++ b/docs/recipes/java/logging/slf4j/changeloglevel.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeLogLevelExample displayName: Change SLF4J log level example recipeList: - - org.openrewrite.java.logging.slf4j.ChangeLogLevel: from: INFO + - org.openrewrite.java.logging.slf4j.ChangeLogLevel: + from: INFO to: DEBUG startsWith: LaunchDarkly ``` diff --git a/docs/recipes/java/micronaut/addannotationprocessorpath.md b/docs/recipes/java/micronaut/addannotationprocessorpath.md index 77992a3bc..01653a999 100644 --- a/docs/recipes/java/micronaut/addannotationprocessorpath.md +++ b/docs/recipes/java/micronaut/addannotationprocessorpath.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddAnnotationProcessorPathExample displayName: Add Maven annotation processor path example recipeList: - - org.openrewrite.java.micronaut.AddAnnotationProcessorPath: groupId: corp.internal.openrewrite.recipe + - org.openrewrite.java.micronaut.AddAnnotationProcessorPath: + groupId: corp.internal.openrewrite.recipe artifactId: my-new-annotation-processor version: ${micronaut.validation} onlyIfUsing: jakarta.validation.constraints.* diff --git a/docs/recipes/java/micronaut/changeannotationprocessorpath.md b/docs/recipes/java/micronaut/changeannotationprocessorpath.md index bd451f9bd..294f750f1 100644 --- a/docs/recipes/java/micronaut/changeannotationprocessorpath.md +++ b/docs/recipes/java/micronaut/changeannotationprocessorpath.md @@ -42,7 +42,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeAnnotationProcessorPathExample displayName: Change Maven annotation processor path example recipeList: - - org.openrewrite.java.micronaut.ChangeAnnotationProcessorPath: oldGroupId: org.openrewrite.recipe + - org.openrewrite.java.micronaut.ChangeAnnotationProcessorPath: + oldGroupId: org.openrewrite.recipe oldArtifactId: my-deprecated-annotation-processor newGroupId: corp.internal.openrewrite.recipe newArtifactId: my-new-annotation-processor diff --git a/docs/recipes/java/micronaut/removeannotationprocessorpath.md b/docs/recipes/java/micronaut/removeannotationprocessorpath.md index 83c750da6..85126e446 100644 --- a/docs/recipes/java/micronaut/removeannotationprocessorpath.md +++ b/docs/recipes/java/micronaut/removeannotationprocessorpath.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveAnnotationProcessorPathExample displayName: Remove Maven annotation processor path example recipeList: - - org.openrewrite.java.micronaut.RemoveAnnotationProcessorPath: groupId: corp.internal.openrewrite.recipe + - org.openrewrite.java.micronaut.RemoveAnnotationProcessorPath: + groupId: corp.internal.openrewrite.recipe artifactId: my-new-annotation-processor ``` diff --git a/docs/recipes/java/micronaut/upgrademicronautgradlepropertiesversion.md b/docs/recipes/java/micronaut/upgrademicronautgradlepropertiesversion.md index ac8ee68e8..26775877a 100644 --- a/docs/recipes/java/micronaut/upgrademicronautgradlepropertiesversion.md +++ b/docs/recipes/java/micronaut/upgrademicronautgradlepropertiesversion.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpgradeMicronautGradlePropertiesVersionExample displayName: Upgrade gradle.properties Micronaut version example recipeList: - - org.openrewrite.java.micronaut.UpgradeMicronautGradlePropertiesVersion: newVersion: 4.x + - org.openrewrite.java.micronaut.UpgradeMicronautGradlePropertiesVersion: + newVersion: 4.x ``` Now that `com.yourorg.UpgradeMicronautGradlePropertiesVersionExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-micronaut:{{VERSION_REWRITE_MICRONAUT}}` in your build file: diff --git a/docs/recipes/java/micronaut/upgrademicronautmavenpropertyversion.md b/docs/recipes/java/micronaut/upgrademicronautmavenpropertyversion.md index 450e81fa4..7520d0b22 100644 --- a/docs/recipes/java/micronaut/upgrademicronautmavenpropertyversion.md +++ b/docs/recipes/java/micronaut/upgrademicronautmavenpropertyversion.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpgradeMicronautMavenPropertyVersionExample displayName: Upgrade `micronaut.version` Maven property example recipeList: - - org.openrewrite.java.micronaut.UpgradeMicronautMavenPropertyVersion: newVersion: 4.x + - org.openrewrite.java.micronaut.UpgradeMicronautMavenPropertyVersion: + newVersion: 4.x ``` Now that `com.yourorg.UpgradeMicronautMavenPropertyVersionExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-micronaut:{{VERSION_REWRITE_MICRONAUT}}` in your build file: diff --git a/docs/recipes/java/migrate/addmissingmethodimplementation.md b/docs/recipes/java/migrate/addmissingmethodimplementation.md index 016c593b7..8c538a32e 100644 --- a/docs/recipes/java/migrate/addmissingmethodimplementation.md +++ b/docs/recipes/java/migrate/addmissingmethodimplementation.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddMissingMethodImplementationExample displayName: Adds missing method implementations example recipeList: - - org.openrewrite.java.migrate.AddMissingMethodImplementation: fullyQualifiedClassName: com.yourorg.FooBar + - org.openrewrite.java.migrate.AddMissingMethodImplementation: + fullyQualifiedClassName: com.yourorg.FooBar methodPattern: '*..* hello(..)' methodTemplateString: public String hello() { return \"Hello from #{}!\"; } ``` diff --git a/docs/recipes/java/migrate/changemethodinvocationreturntype.md b/docs/recipes/java/migrate/changemethodinvocationreturntype.md index bb76c170d..59ce0870c 100644 --- a/docs/recipes/java/migrate/changemethodinvocationreturntype.md +++ b/docs/recipes/java/migrate/changemethodinvocationreturntype.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeMethodInvocationReturnTypeExample displayName: Change method invocation return type example recipeList: - - org.openrewrite.java.migrate.ChangeMethodInvocationReturnType: methodPattern: org.mockito.Matchers anyVararg() + - org.openrewrite.java.migrate.ChangeMethodInvocationReturnType: + methodPattern: org.mockito.Matchers anyVararg() newReturnType: long ``` diff --git a/docs/recipes/java/migrate/dontoverfetchdto.md b/docs/recipes/java/migrate/dontoverfetchdto.md index e30a35cc6..2e955989e 100644 --- a/docs/recipes/java/migrate/dontoverfetchdto.md +++ b/docs/recipes/java/migrate/dontoverfetchdto.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.DontOverfetchDtoExample displayName: Replace DTO method parameters with data elements example recipeList: - - org.openrewrite.java.migrate.DontOverfetchDto: dtoType: animals.Dog + - org.openrewrite.java.migrate.DontOverfetchDto: + dtoType: animals.Dog dtoDataElement: name ``` diff --git a/docs/recipes/java/migrate/javax/addjaxbruntime.md b/docs/recipes/java/migrate/javax/addjaxbruntime.md index 3842c7377..c50ba07a7 100644 --- a/docs/recipes/java/migrate/javax/addjaxbruntime.md +++ b/docs/recipes/java/migrate/javax/addjaxbruntime.md @@ -46,7 +46,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddJaxbRuntimeExample displayName: Use latest JAXB API and runtime for Jakarta EE 8 example recipeList: - - org.openrewrite.java.migrate.javax.AddJaxbRuntime: runtime: glassfish + - org.openrewrite.java.migrate.javax.AddJaxbRuntime: + runtime: glassfish ``` Now that `com.yourorg.AddJaxbRuntimeExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-migrate-java:{{VERSION_REWRITE_MIGRATE_JAVA}}` in your build file: diff --git a/docs/recipes/java/migrate/maven/updatemavenprojectpropertyjavaversion.md b/docs/recipes/java/migrate/maven/updatemavenprojectpropertyjavaversion.md index 46a1489a7..81a15bd7e 100644 --- a/docs/recipes/java/migrate/maven/updatemavenprojectpropertyjavaversion.md +++ b/docs/recipes/java/migrate/maven/updatemavenprojectpropertyjavaversion.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpdateMavenProjectPropertyJavaVersionExample displayName: Update Maven Java project properties example recipeList: - - org.openrewrite.java.migrate.maven.UpdateMavenProjectPropertyJavaVersion: version: 11 + - org.openrewrite.java.migrate.maven.UpdateMavenProjectPropertyJavaVersion: + version: 11 ``` Now that `com.yourorg.UpdateMavenProjectPropertyJavaVersionExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-migrate-java:{{VERSION_REWRITE_MIGRATE_JAVA}}` in your build file: diff --git a/docs/recipes/java/migrate/maven/usemavencompilerpluginreleaseconfiguration.md b/docs/recipes/java/migrate/maven/usemavencompilerpluginreleaseconfiguration.md index cda0484df..298268c49 100644 --- a/docs/recipes/java/migrate/maven/usemavencompilerpluginreleaseconfiguration.md +++ b/docs/recipes/java/migrate/maven/usemavencompilerpluginreleaseconfiguration.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UseMavenCompilerPluginReleaseConfigurationExample displayName: Use Maven compiler plugin release configuration example recipeList: - - org.openrewrite.java.migrate.maven.UseMavenCompilerPluginReleaseConfiguration: releaseVersion: 11 + - org.openrewrite.java.migrate.maven.UseMavenCompilerPluginReleaseConfiguration: + releaseVersion: 11 ``` Now that `com.yourorg.UseMavenCompilerPluginReleaseConfigurationExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-migrate-java:{{VERSION_REWRITE_MIGRATE_JAVA}}` in your build file: diff --git a/docs/recipes/java/migrate/replacestringliteralvalue.md b/docs/recipes/java/migrate/replacestringliteralvalue.md index f738a27cb..b4e1ae10f 100644 --- a/docs/recipes/java/migrate/replacestringliteralvalue.md +++ b/docs/recipes/java/migrate/replacestringliteralvalue.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ReplaceStringLiteralValueExample displayName: Replace `String` literal example recipeList: - - org.openrewrite.java.migrate.ReplaceStringLiteralValue: oldLiteralValue: apple + - org.openrewrite.java.migrate.ReplaceStringLiteralValue: + oldLiteralValue: apple newLiteralValue: orange ``` diff --git a/docs/recipes/java/migrate/search/finddatausedondto.md b/docs/recipes/java/migrate/search/finddatausedondto.md index c4d871c3f..7d971f7db 100644 --- a/docs/recipes/java/migrate/search/finddatausedondto.md +++ b/docs/recipes/java/migrate/search/finddatausedondto.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindDataUsedOnDtoExample displayName: Find data used on DTOs example recipeList: - - org.openrewrite.java.migrate.search.FindDataUsedOnDto: dtoType: com.example.dto.* + - org.openrewrite.java.migrate.search.FindDataUsedOnDto: + dtoType: com.example.dto.* ``` Now that `com.yourorg.FindDataUsedOnDtoExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-migrate-java:{{VERSION_REWRITE_MIGRATE_JAVA}}` in your build file: diff --git a/docs/recipes/java/migrate/search/finddtooverfetching.md b/docs/recipes/java/migrate/search/finddtooverfetching.md index 08de182a2..d2806e27e 100644 --- a/docs/recipes/java/migrate/search/finddtooverfetching.md +++ b/docs/recipes/java/migrate/search/finddtooverfetching.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindDtoOverfetchingExample displayName: Find methods that only use one DTO data element example recipeList: - - org.openrewrite.java.migrate.search.FindDtoOverfetching: dtoType: com.example.dto.* + - org.openrewrite.java.migrate.search.FindDtoOverfetching: + dtoType: com.example.dto.* ``` Now that `com.yourorg.FindDtoOverfetchingExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-migrate-java:{{VERSION_REWRITE_MIGRATE_JAVA}}` in your build file: diff --git a/docs/recipes/java/migrate/upgradejavaversion.md b/docs/recipes/java/migrate/upgradejavaversion.md index 5a4a98f56..1fc0d5e29 100644 --- a/docs/recipes/java/migrate/upgradejavaversion.md +++ b/docs/recipes/java/migrate/upgradejavaversion.md @@ -72,7 +72,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpgradeJavaVersionExample displayName: Upgrade Java version example recipeList: - - org.openrewrite.java.migrate.UpgradeJavaVersion: version: 11 + - org.openrewrite.java.migrate.UpgradeJavaVersion: + version: 11 ``` Now that `com.yourorg.UpgradeJavaVersionExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-migrate-java:{{VERSION_REWRITE_MIGRATE_JAVA}}` in your build file: diff --git a/docs/recipes/java/migrate/usetabsorspaces.md b/docs/recipes/java/migrate/usetabsorspaces.md index c1ba405b7..860b63b04 100644 --- a/docs/recipes/java/migrate/usetabsorspaces.md +++ b/docs/recipes/java/migrate/usetabsorspaces.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UseTabsOrSpacesExample displayName: Force indentation to either tabs or spaces example recipeList: - - org.openrewrite.java.migrate.UseTabsOrSpaces: useTabs: false + - org.openrewrite.java.migrate.UseTabsOrSpaces: + useTabs: false ``` Now that `com.yourorg.UseTabsOrSpacesExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-migrate-java:{{VERSION_REWRITE_MIGRATE_JAVA}}` in your build file: diff --git a/docs/recipes/java/nostaticimport.md b/docs/recipes/java/nostaticimport.md index 17f54d040..b8a338b67 100644 --- a/docs/recipes/java/nostaticimport.md +++ b/docs/recipes/java/nostaticimport.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.NoStaticImportExample displayName: Remove static import example recipeList: - - org.openrewrite.java.NoStaticImport: methodPattern: java.util.Collections emptyList() + - org.openrewrite.java.NoStaticImport: + methodPattern: java.util.Collections emptyList() ``` Now that `com.yourorg.NoStaticImportExample` has been defined, activate it in your build file: diff --git a/docs/recipes/java/recipemarkupdemonstration.md b/docs/recipes/java/recipemarkupdemonstration.md index 7a473e2fe..5fdbd502f 100644 --- a/docs/recipes/java/recipemarkupdemonstration.md +++ b/docs/recipes/java/recipemarkupdemonstration.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RecipeMarkupDemonstrationExample displayName: Demonstrate rendering of `Markup` markers example recipeList: - - org.openrewrite.java.RecipeMarkupDemonstration: level: null + - org.openrewrite.java.RecipeMarkupDemonstration: + level: null ``` Now that `com.yourorg.RecipeMarkupDemonstrationExample` has been defined, activate it in your build file: diff --git a/docs/recipes/java/removeannotation.md b/docs/recipes/java/removeannotation.md index c87a4d892..7119da9c2 100644 --- a/docs/recipes/java/removeannotation.md +++ b/docs/recipes/java/removeannotation.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveAnnotationExample displayName: Remove annotation example recipeList: - - org.openrewrite.java.RemoveAnnotation: annotationPattern: '@java.lang.SuppressWarnings("deprecation")' + - org.openrewrite.java.RemoveAnnotation: + annotationPattern: '@java.lang.SuppressWarnings("deprecation")' ``` Now that `com.yourorg.RemoveAnnotationExample` has been defined, activate it in your build file: diff --git a/docs/recipes/java/removeannotationattribute.md b/docs/recipes/java/removeannotationattribute.md index ba6af617b..49075b854 100644 --- a/docs/recipes/java/removeannotationattribute.md +++ b/docs/recipes/java/removeannotationattribute.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveAnnotationAttributeExample displayName: Remove annotation attribute example recipeList: - - org.openrewrite.java.RemoveAnnotationAttribute: annotationType: org.junit.Test + - org.openrewrite.java.RemoveAnnotationAttribute: + annotationType: org.junit.Test attributeName: timeout ``` diff --git a/docs/recipes/java/removeimplements.md b/docs/recipes/java/removeimplements.md index eade2ac37..0ba57f2a0 100644 --- a/docs/recipes/java/removeimplements.md +++ b/docs/recipes/java/removeimplements.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveImplementsExample displayName: Remove interface implementations example recipeList: - - org.openrewrite.java.RemoveImplements: interfaceType: java.io.Serializable + - org.openrewrite.java.RemoveImplements: + interfaceType: java.io.Serializable filter: com.yourorg. ``` diff --git a/docs/recipes/java/removemethodinvocations.md b/docs/recipes/java/removemethodinvocations.md index 2356985b3..8f8e7d6a0 100644 --- a/docs/recipes/java/removemethodinvocations.md +++ b/docs/recipes/java/removemethodinvocations.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveMethodInvocationsExample displayName: Remove method invocations example recipeList: - - org.openrewrite.java.RemoveMethodInvocations: methodPattern: java.lang.StringBuilder append(java.lang.String) + - org.openrewrite.java.RemoveMethodInvocations: + methodPattern: java.lang.StringBuilder append(java.lang.String) ``` Now that `com.yourorg.RemoveMethodInvocationsExample` has been defined, activate it in your build file: diff --git a/docs/recipes/java/reordermethodarguments.md b/docs/recipes/java/reordermethodarguments.md index 4bfec9be8..0a0ea2e82 100644 --- a/docs/recipes/java/reordermethodarguments.md +++ b/docs/recipes/java/reordermethodarguments.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ReorderMethodArgumentsExample displayName: Reorder method arguments example recipeList: - - org.openrewrite.java.ReorderMethodArguments: methodPattern: com.yourorg.A foo(String, Integer, Integer) + - org.openrewrite.java.ReorderMethodArguments: + methodPattern: com.yourorg.A foo(String, Integer, Integer) newParameterNames: [foo, bar, baz] oldParameterNames: [baz, bar, foo] ``` diff --git a/docs/recipes/java/replaceannotation.md b/docs/recipes/java/replaceannotation.md index 29c873c17..da5c78ee3 100644 --- a/docs/recipes/java/replaceannotation.md +++ b/docs/recipes/java/replaceannotation.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ReplaceAnnotationExample displayName: Replace annotation example recipeList: - - org.openrewrite.java.ReplaceAnnotation: annotationPatternToReplace: '@org.jetbrains.annotations.NotNull("Test")' + - org.openrewrite.java.ReplaceAnnotation: + annotationPatternToReplace: '@org.jetbrains.annotations.NotNull("Test")' annotationTemplateToInsert: '@org.jetbrains.annotations.NotNull("Null not permitted")' classpathResourceName: annotations ``` diff --git a/docs/recipes/java/replaceconstant.md b/docs/recipes/java/replaceconstant.md index 8b6fd9c34..7441663e3 100644 --- a/docs/recipes/java/replaceconstant.md +++ b/docs/recipes/java/replaceconstant.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ReplaceConstantExample displayName: Replace constant with literal value example recipeList: - - org.openrewrite.java.ReplaceConstant: owningType: com.google.common.base.Charsets + - org.openrewrite.java.ReplaceConstant: + owningType: com.google.common.base.Charsets constantName: UTF_8 literalValue: UTF_8 ``` diff --git a/docs/recipes/java/replaceconstantwithanotherconstant.md b/docs/recipes/java/replaceconstantwithanotherconstant.md index 85794a0bf..eded668ea 100644 --- a/docs/recipes/java/replaceconstantwithanotherconstant.md +++ b/docs/recipes/java/replaceconstantwithanotherconstant.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ReplaceConstantWithAnotherConstantExample displayName: Replace constant with another constant example recipeList: - - org.openrewrite.java.ReplaceConstantWithAnotherConstant: existingFullyQualifiedConstantName: org.springframework.http.MediaType.APPLICATION_JSON_VALUE + - org.openrewrite.java.ReplaceConstantWithAnotherConstant: + existingFullyQualifiedConstantName: org.springframework.http.MediaType.APPLICATION_JSON_VALUE fullyQualifiedConstantName: org.springframework.http.MediaType.APPLICATION_JSON_VALUE ``` diff --git a/docs/recipes/java/replacestringliteralwithconstant.md b/docs/recipes/java/replacestringliteralwithconstant.md index 7e2b57040..a7ee398e2 100644 --- a/docs/recipes/java/replacestringliteralwithconstant.md +++ b/docs/recipes/java/replacestringliteralwithconstant.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ReplaceStringLiteralWithConstantExample displayName: Replace String literal with constant example recipeList: - - org.openrewrite.java.ReplaceStringLiteralWithConstant: literalValue: application/json + - org.openrewrite.java.ReplaceStringLiteralWithConstant: + literalValue: application/json fullyQualifiedConstantName: org.springframework.http.MediaType.APPLICATION_JSON_VALUE ``` diff --git a/docs/recipes/java/search/doesnotusetype.md b/docs/recipes/java/search/doesnotusetype.md index b153787cb..51154f7ae 100644 --- a/docs/recipes/java/search/doesnotusetype.md +++ b/docs/recipes/java/search/doesnotusetype.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.DoesNotUseTypeExample displayName: Check whether a type is **not** in use example recipeList: - - org.openrewrite.java.search.DoesNotUseType: fullyQualifiedTypeName: java.util.List + - org.openrewrite.java.search.DoesNotUseType: + fullyQualifiedTypeName: java.util.List ``` Now that `com.yourorg.DoesNotUseTypeExample` has been defined, activate it in your build file: diff --git a/docs/recipes/java/search/findannotations.md b/docs/recipes/java/search/findannotations.md index 648db26c9..27133365f 100644 --- a/docs/recipes/java/search/findannotations.md +++ b/docs/recipes/java/search/findannotations.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindAnnotationsExample displayName: Find annotations example recipeList: - - org.openrewrite.java.search.FindAnnotations: annotationPattern: '@java.lang.SuppressWarnings("deprecation")' + - org.openrewrite.java.search.FindAnnotations: + annotationPattern: '@java.lang.SuppressWarnings("deprecation")' ``` Now that `com.yourorg.FindAnnotationsExample` has been defined, activate it in your build file: diff --git a/docs/recipes/java/search/findcomments.md b/docs/recipes/java/search/findcomments.md index 9b81f2049..641c8e0c9 100644 --- a/docs/recipes/java/search/findcomments.md +++ b/docs/recipes/java/search/findcomments.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindCommentsExample displayName: Find within comments and literals example recipeList: - - org.openrewrite.java.search.FindComments: patterns: -----BEGIN RSA PRIVATE KEY----- + - org.openrewrite.java.search.FindComments: + patterns: -----BEGIN RSA PRIVATE KEY----- ``` Now that `com.yourorg.FindCommentsExample` has been defined, activate it in your build file: diff --git a/docs/recipes/java/search/findfields.md b/docs/recipes/java/search/findfields.md index 547e7cfc7..90c30dc04 100644 --- a/docs/recipes/java/search/findfields.md +++ b/docs/recipes/java/search/findfields.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindFieldsExample displayName: Find fields example recipeList: - - org.openrewrite.java.search.FindFields: fullyQualifiedTypeName: com.fasterxml.jackson.core.json.JsonWriteFeature + - org.openrewrite.java.search.FindFields: + fullyQualifiedTypeName: com.fasterxml.jackson.core.json.JsonWriteFeature fieldName: QUOTE_FIELD_NAMES ``` diff --git a/docs/recipes/java/search/findfieldsoftype.md b/docs/recipes/java/search/findfieldsoftype.md index 88bff8bab..c5c143f35 100644 --- a/docs/recipes/java/search/findfieldsoftype.md +++ b/docs/recipes/java/search/findfieldsoftype.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindFieldsOfTypeExample displayName: Find fields of type example recipeList: - - org.openrewrite.java.search.FindFieldsOfType: fullyQualifiedTypeName: org.slf4j.api.Logger + - org.openrewrite.java.search.FindFieldsOfType: + fullyQualifiedTypeName: org.slf4j.api.Logger ``` Now that `com.yourorg.FindFieldsOfTypeExample` has been defined, activate it in your build file: diff --git a/docs/recipes/java/search/findimplementations.md b/docs/recipes/java/search/findimplementations.md index e23729a1b..e861de208 100644 --- a/docs/recipes/java/search/findimplementations.md +++ b/docs/recipes/java/search/findimplementations.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindImplementationsExample displayName: Find implementing classes example recipeList: - - org.openrewrite.java.search.FindImplementations: typeName: org.openrewrite.Recipe + - org.openrewrite.java.search.FindImplementations: + typeName: org.openrewrite.Recipe ``` Now that `com.yourorg.FindImplementationsExample` has been defined, activate it in your build file: diff --git a/docs/recipes/java/search/findliterals.md b/docs/recipes/java/search/findliterals.md index f56dc6427..16e5816fd 100644 --- a/docs/recipes/java/search/findliterals.md +++ b/docs/recipes/java/search/findliterals.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindLiteralsExample displayName: Find literals example recipeList: - - org.openrewrite.java.search.FindLiterals: pattern: file:// + - org.openrewrite.java.search.FindLiterals: + pattern: file:// ``` Now that `com.yourorg.FindLiteralsExample` has been defined, activate it in your build file: diff --git a/docs/recipes/java/search/findmethoddeclaration.md b/docs/recipes/java/search/findmethoddeclaration.md index 09a1f4e5d..cb1292cea 100644 --- a/docs/recipes/java/search/findmethoddeclaration.md +++ b/docs/recipes/java/search/findmethoddeclaration.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindMethodDeclarationExample displayName: Find method declaration example recipeList: - - org.openrewrite.java.search.FindMethodDeclaration: methodPattern: java.util.List add(..) + - org.openrewrite.java.search.FindMethodDeclaration: + methodPattern: java.util.List add(..) ``` Now that `com.yourorg.FindMethodDeclarationExample` has been defined, activate it in your build file: diff --git a/docs/recipes/java/search/findmethods.md b/docs/recipes/java/search/findmethods.md index dad29c1a7..6b8426d5c 100644 --- a/docs/recipes/java/search/findmethods.md +++ b/docs/recipes/java/search/findmethods.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindMethodsExample displayName: Find method usages example recipeList: - - org.openrewrite.java.search.FindMethods: methodPattern: java.util.List add(..) + - org.openrewrite.java.search.FindMethods: + methodPattern: java.util.List add(..) ``` Now that `com.yourorg.FindMethodsExample` has been defined, activate it in your build file: diff --git a/docs/recipes/java/search/findtypes.md b/docs/recipes/java/search/findtypes.md index ef43f1c71..3e415a55c 100644 --- a/docs/recipes/java/search/findtypes.md +++ b/docs/recipes/java/search/findtypes.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindTypesExample displayName: Find types example recipeList: - - org.openrewrite.java.search.FindTypes: fullyQualifiedTypeName: java.util.List + - org.openrewrite.java.search.FindTypes: + fullyQualifiedTypeName: java.util.List ``` Now that `com.yourorg.FindTypesExample` has been defined, activate it in your build file: diff --git a/docs/recipes/java/search/hasbuildtoolversion.md b/docs/recipes/java/search/hasbuildtoolversion.md index 015a4eac7..243e44431 100644 --- a/docs/recipes/java/search/hasbuildtoolversion.md +++ b/docs/recipes/java/search/hasbuildtoolversion.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.HasBuildToolVersionExample displayName: Find files with a particular build tool version example recipeList: - - org.openrewrite.java.search.HasBuildToolVersion: type: Maven + - org.openrewrite.java.search.HasBuildToolVersion: + type: Maven version: 3.6.0-9999 ``` diff --git a/docs/recipes/java/search/hasjavaversion.md b/docs/recipes/java/search/hasjavaversion.md index e4a352013..61576b365 100644 --- a/docs/recipes/java/search/hasjavaversion.md +++ b/docs/recipes/java/search/hasjavaversion.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.HasJavaVersionExample displayName: Find files compiled at a specific Java version example recipeList: - - org.openrewrite.java.search.HasJavaVersion: version: 17.X + - org.openrewrite.java.search.HasJavaVersion: + version: 17.X checkTargetCompatibility: 17.X ``` diff --git a/docs/recipes/java/search/hasminimumjavaversion.md b/docs/recipes/java/search/hasminimumjavaversion.md index 1e929a981..7524446ef 100644 --- a/docs/recipes/java/search/hasminimumjavaversion.md +++ b/docs/recipes/java/search/hasminimumjavaversion.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.HasMinimumJavaVersionExample displayName: Find the oldest Java version in use example recipeList: - - org.openrewrite.java.search.HasMinimumJavaVersion: version: 17.X + - org.openrewrite.java.search.HasMinimumJavaVersion: + version: 17.X checkTargetCompatibility: 17.X ``` diff --git a/docs/recipes/java/search/hassourceset.md b/docs/recipes/java/search/hassourceset.md index 9680de195..bfca1acb9 100644 --- a/docs/recipes/java/search/hassourceset.md +++ b/docs/recipes/java/search/hassourceset.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.HasSourceSetExample displayName: Find files in a source set example recipeList: - - org.openrewrite.java.search.HasSourceSet: sourceSet: main + - org.openrewrite.java.search.HasSourceSet: + sourceSet: main ``` Now that `com.yourorg.HasSourceSetExample` has been defined, activate it in your build file: diff --git a/docs/recipes/java/search/resultofmethodcallignored.md b/docs/recipes/java/search/resultofmethodcallignored.md index 0ad637520..f77d3cde4 100644 --- a/docs/recipes/java/search/resultofmethodcallignored.md +++ b/docs/recipes/java/search/resultofmethodcallignored.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ResultOfMethodCallIgnoredExample displayName: Result of method call ignored example recipeList: - - org.openrewrite.java.search.ResultOfMethodCallIgnored: methodPattern: java.io.File mkdir*() + - org.openrewrite.java.search.ResultOfMethodCallIgnored: + methodPattern: java.io.File mkdir*() ``` Now that `com.yourorg.ResultOfMethodCallIgnoredExample` has been defined, activate it in your build file: diff --git a/docs/recipes/java/simplifymethodchain.md b/docs/recipes/java/simplifymethodchain.md index a4ffa718d..1cf57b388 100644 --- a/docs/recipes/java/simplifymethodchain.md +++ b/docs/recipes/java/simplifymethodchain.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.SimplifyMethodChainExample displayName: Simplify a call chain example recipeList: - - org.openrewrite.java.SimplifyMethodChain: methodPatternChain: ['java.util.Map keySet()', 'java.util.Set contains(..)'] + - org.openrewrite.java.SimplifyMethodChain: + methodPatternChain: ['java.util.Map keySet()', 'java.util.Set contains(..)'] newMethodName: containsKey matchOverrides: false ``` diff --git a/docs/recipes/java/spring/addspringproperty.md b/docs/recipes/java/spring/addspringproperty.md index d98fd23bf..113b1507f 100644 --- a/docs/recipes/java/spring/addspringproperty.md +++ b/docs/recipes/java/spring/addspringproperty.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddSpringPropertyExample displayName: Add a spring configuration property example recipeList: - - org.openrewrite.java.spring.AddSpringProperty: property: management.metrics.enable.process.files + - org.openrewrite.java.spring.AddSpringProperty: + property: management.metrics.enable.process.files value: true comment: This is a comment pathExpressions: ["**/application.yml"] diff --git a/docs/recipes/java/spring/amqp/usetlsamqpconnectionstring.md b/docs/recipes/java/spring/amqp/usetlsamqpconnectionstring.md index 693824eee..7a3602279 100644 --- a/docs/recipes/java/spring/amqp/usetlsamqpconnectionstring.md +++ b/docs/recipes/java/spring/amqp/usetlsamqpconnectionstring.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UseTlsAmqpConnectionStringExample displayName: Use TLS for AMQP connection strings example recipeList: - - org.openrewrite.java.spring.amqp.UseTlsAmqpConnectionString: propertyKey: spring.rabbitmq.addresses + - org.openrewrite.java.spring.amqp.UseTlsAmqpConnectionString: + propertyKey: spring.rabbitmq.addresses oldPort: 1234 port: 1234 tlsPropertyKey: spring.rabbitmq.ssl.enabled diff --git a/docs/recipes/java/spring/batch/replacesupportclasswithitsinterface.md b/docs/recipes/java/spring/batch/replacesupportclasswithitsinterface.md index 2eeb0a1ad..afff3f9fd 100644 --- a/docs/recipes/java/spring/batch/replacesupportclasswithitsinterface.md +++ b/docs/recipes/java/spring/batch/replacesupportclasswithitsinterface.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ReplaceSupportClassWithItsInterfaceExample displayName: Transform classes that extend a given Class to implement the given Interface instead example recipeList: - - org.openrewrite.java.spring.batch.ReplaceSupportClassWithItsInterface: fullyQualifiedClassName: org.springframework.batch.core.listener.JobExecutionListenerSupport + - org.openrewrite.java.spring.batch.ReplaceSupportClassWithItsInterface: + fullyQualifiedClassName: org.springframework.batch.core.listener.JobExecutionListenerSupport fullyQualifiedInterfaceName: org.springframework.batch.core.JobExecutionListener ``` diff --git a/docs/recipes/java/spring/boot3/configurationoverenablesecurity.md b/docs/recipes/java/spring/boot3/configurationoverenablesecurity.md index 230793b94..cbd4d6cff 100644 --- a/docs/recipes/java/spring/boot3/configurationoverenablesecurity.md +++ b/docs/recipes/java/spring/boot3/configurationoverenablesecurity.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ConfigurationOverEnableSecurityExample displayName: Add `@Configuration` to classes with `@EnableXXXSecurity` annotations example recipeList: - - org.openrewrite.java.spring.boot3.ConfigurationOverEnableSecurity: forceAddConfiguration: false + - org.openrewrite.java.spring.boot3.ConfigurationOverEnableSecurity: + forceAddConfiguration: false ``` Now that `com.yourorg.ConfigurationOverEnableSecurityExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-spring:{{VERSION_REWRITE_SPRING}}` in your build file: diff --git a/docs/recipes/java/spring/changemethodparameter.md b/docs/recipes/java/spring/changemethodparameter.md index 167e18565..0e6dc8dfe 100644 --- a/docs/recipes/java/spring/changemethodparameter.md +++ b/docs/recipes/java/spring/changemethodparameter.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeMethodParameterExample displayName: Change parameter type for a method declaration example recipeList: - - org.openrewrite.java.spring.ChangeMethodParameter: methodPattern: com.yourorg.A foo(int, int) + - org.openrewrite.java.spring.ChangeMethodParameter: + methodPattern: com.yourorg.A foo(int, int) parameterType: java.lang.String parameterIndex: 0 ``` diff --git a/docs/recipes/java/spring/changespringpropertykey.md b/docs/recipes/java/spring/changespringpropertykey.md index c6f7f1254..83aacf6b0 100644 --- a/docs/recipes/java/spring/changespringpropertykey.md +++ b/docs/recipes/java/spring/changespringpropertykey.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeSpringPropertyKeyExample displayName: Change the key of a spring application property example recipeList: - - org.openrewrite.java.spring.ChangeSpringPropertyKey: oldPropertyKey: management.metrics.binders.*.enabled + - org.openrewrite.java.spring.ChangeSpringPropertyKey: + oldPropertyKey: management.metrics.binders.*.enabled newPropertyKey: management.metrics.enable.process.files except: jvm ``` diff --git a/docs/recipes/java/spring/changespringpropertyvalue.md b/docs/recipes/java/spring/changespringpropertyvalue.md index c75db2205..cd3539db5 100644 --- a/docs/recipes/java/spring/changespringpropertyvalue.md +++ b/docs/recipes/java/spring/changespringpropertyvalue.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeSpringPropertyValueExample displayName: Change the value of a spring application property example recipeList: - - org.openrewrite.java.spring.ChangeSpringPropertyValue: propertyKey: management.metrics.binders.files.enabled + - org.openrewrite.java.spring.ChangeSpringPropertyValue: + propertyKey: management.metrics.binders.files.enabled newValue: management.metrics.enable.process.files oldValue: false ``` diff --git a/docs/recipes/java/spring/commentoutspringpropertykey.md b/docs/recipes/java/spring/commentoutspringpropertykey.md index a453dbdf6..257072dd2 100644 --- a/docs/recipes/java/spring/commentoutspringpropertykey.md +++ b/docs/recipes/java/spring/commentoutspringpropertykey.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.CommentOutSpringPropertyKeyExample displayName: Comment out Spring properties example recipeList: - - org.openrewrite.java.spring.CommentOutSpringPropertyKey: propertyKey: management.metrics.binders.files.enabled + - org.openrewrite.java.spring.CommentOutSpringPropertyKey: + propertyKey: management.metrics.binders.files.enabled comment: This property is deprecated and no longer applicable starting from Spring Boot 3.0.x ``` diff --git a/docs/recipes/java/spring/data/usetlsjdbcconnectionstring.md b/docs/recipes/java/spring/data/usetlsjdbcconnectionstring.md index 6cbcbb092..f92273d71 100644 --- a/docs/recipes/java/spring/data/usetlsjdbcconnectionstring.md +++ b/docs/recipes/java/spring/data/usetlsjdbcconnectionstring.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UseTlsJdbcConnectionStringExample displayName: Use TLS for JDBC connection strings example recipeList: - - org.openrewrite.java.spring.data.UseTlsJdbcConnectionString: propertyKey: spring.datasource.url + - org.openrewrite.java.spring.data.UseTlsJdbcConnectionString: + propertyKey: spring.datasource.url oldPort: 1234 port: 1234 attribute: sslConnection=true diff --git a/docs/recipes/java/spring/deletespringproperty.md b/docs/recipes/java/spring/deletespringproperty.md index 21476d763..9b8c754ea 100644 --- a/docs/recipes/java/spring/deletespringproperty.md +++ b/docs/recipes/java/spring/deletespringproperty.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.DeleteSpringPropertyExample displayName: Delete a spring configuration property example recipeList: - - org.openrewrite.java.spring.DeleteSpringProperty: propertyKey: management.endpoint.configprops.* + - org.openrewrite.java.spring.DeleteSpringProperty: + propertyKey: management.endpoint.configprops.* ``` Now that `com.yourorg.DeleteSpringPropertyExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-spring:{{VERSION_REWRITE_SPRING}}` in your build file: diff --git a/docs/recipes/java/spring/renamebean.md b/docs/recipes/java/spring/renamebean.md index f932f7acb..8147b23bd 100644 --- a/docs/recipes/java/spring/renamebean.md +++ b/docs/recipes/java/spring/renamebean.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RenameBeanExample displayName: Rename bean example recipeList: - - org.openrewrite.java.spring.RenameBean: type: foo.MyType + - org.openrewrite.java.spring.RenameBean: + type: foo.MyType oldName: fooBean newName: barBean ``` diff --git a/docs/recipes/java/struts/migratestrutsdtd.md b/docs/recipes/java/struts/migratestrutsdtd.md index 12898c34b..4dcf120e8 100644 --- a/docs/recipes/java/struts/migratestrutsdtd.md +++ b/docs/recipes/java/struts/migratestrutsdtd.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.MigrateStrutsDtdExample displayName: Migrate DTD to a specific Struts version example recipeList: - - org.openrewrite.java.struts.MigrateStrutsDtd: strutsVersion: 6.0 + - org.openrewrite.java.struts.MigrateStrutsDtd: + strutsVersion: 6.0 ``` Now that `com.yourorg.MigrateStrutsDtdExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-struts:{{VERSION_REWRITE_STRUTS}}` in your build file: diff --git a/docs/recipes/java/testing/assertj/simplifyassertjassertion.md b/docs/recipes/java/testing/assertj/simplifyassertjassertion.md index ee822e965..89f9468c3 100644 --- a/docs/recipes/java/testing/assertj/simplifyassertjassertion.md +++ b/docs/recipes/java/testing/assertj/simplifyassertjassertion.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.SimplifyAssertJAssertionExample displayName: Simplify AssertJ assertions with literal arguments example recipeList: - - org.openrewrite.java.testing.assertj.SimplifyAssertJAssertion: assertToReplace: hasSize + - org.openrewrite.java.testing.assertj.SimplifyAssertJAssertion: + assertToReplace: hasSize literalArgument: 0 dedicatedAssertion: isEmpty requiredType: java.lang.String diff --git a/docs/recipes/java/testing/junit5/removeobsoleterunners.md b/docs/recipes/java/testing/junit5/removeobsoleterunners.md index a9b20fe1d..8efbe2749 100644 --- a/docs/recipes/java/testing/junit5/removeobsoleterunners.md +++ b/docs/recipes/java/testing/junit5/removeobsoleterunners.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveObsoleteRunnersExample displayName: Remove JUnit 4 `@RunWith` annotations that do not require an `@ExtendsWith` replacement example recipeList: - - org.openrewrite.java.testing.junit5.RemoveObsoleteRunners: obsoleteRunners: org.junit.runners.JUnit4 + - org.openrewrite.java.testing.junit5.RemoveObsoleteRunners: + obsoleteRunners: org.junit.runners.JUnit4 ``` Now that `com.yourorg.RemoveObsoleteRunnersExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-testing-frameworks:{{VERSION_REWRITE_TESTING_FRAMEWORKS}}` in your build file: diff --git a/docs/recipes/java/testing/junit5/runnertoextension.md b/docs/recipes/java/testing/junit5/runnertoextension.md index 6c0e229a2..a704a29b3 100644 --- a/docs/recipes/java/testing/junit5/runnertoextension.md +++ b/docs/recipes/java/testing/junit5/runnertoextension.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RunnerToExtensionExample displayName: JUnit 4 `@RunWith` to JUnit Jupiter `@ExtendWith` example recipeList: - - org.openrewrite.java.testing.junit5.RunnerToExtension: runners: [ org.springframework.test.context.junit4.SpringRunner ] + - org.openrewrite.java.testing.junit5.RunnerToExtension: + runners: [ org.springframework.test.context.junit4.SpringRunner ] extension: org.springframework.test.context.junit.jupiter.SpringExtension ``` diff --git a/docs/recipes/java/testing/testcontainers/explicitcontainerimage.md b/docs/recipes/java/testing/testcontainers/explicitcontainerimage.md index 739006896..099d4b9b6 100644 --- a/docs/recipes/java/testing/testcontainers/explicitcontainerimage.md +++ b/docs/recipes/java/testing/testcontainers/explicitcontainerimage.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ExplicitContainerImageExample displayName: Add image argument to container constructor example recipeList: - - org.openrewrite.java.testing.testcontainers.ExplicitContainerImage: containerClass: org.testcontainers.containers.NginxContainer + - org.openrewrite.java.testing.testcontainers.ExplicitContainerImage: + containerClass: org.testcontainers.containers.NginxContainer image: nginx:1.9.4 ``` diff --git a/docs/recipes/java/usestaticimport.md b/docs/recipes/java/usestaticimport.md index 8117c802f..1da9be25c 100644 --- a/docs/recipes/java/usestaticimport.md +++ b/docs/recipes/java/usestaticimport.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UseStaticImportExample displayName: Use static import example recipeList: - - org.openrewrite.java.UseStaticImport: methodPattern: java.util.Collections emptyList() + - org.openrewrite.java.UseStaticImport: + methodPattern: java.util.Collections emptyList() ``` Now that `com.yourorg.UseStaticImportExample` has been defined, activate it in your build file: diff --git a/docs/recipes/jenkins/isjenkinsplugin.md b/docs/recipes/jenkins/isjenkinsplugin.md index 0b22fd9f4..07af4965d 100644 --- a/docs/recipes/jenkins/isjenkinsplugin.md +++ b/docs/recipes/jenkins/isjenkinsplugin.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.IsJenkinsPluginExample displayName: Is the project a Jenkins plugin? example recipeList: - - org.openrewrite.jenkins.IsJenkinsPlugin: version: '[1,)' + - org.openrewrite.jenkins.IsJenkinsPlugin: + version: '[1,)' ``` Now that `com.yourorg.IsJenkinsPluginExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-jenkins:{{VERSION_REWRITE_JENKINS}}` in your build file: diff --git a/docs/recipes/jenkins/replacelibrarieswithapiplugin.md b/docs/recipes/jenkins/replacelibrarieswithapiplugin.md index 677f5978f..db6ee422e 100644 --- a/docs/recipes/jenkins/replacelibrarieswithapiplugin.md +++ b/docs/recipes/jenkins/replacelibrarieswithapiplugin.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ReplaceLibrariesWithApiPluginExample displayName: Use Jenkins API plugin instead of libraries example recipeList: - - org.openrewrite.jenkins.ReplaceLibrariesWithApiPlugin: pluginGroupId: io.jenkins.plugins + - org.openrewrite.jenkins.ReplaceLibrariesWithApiPlugin: + pluginGroupId: io.jenkins.plugins pluginArtifactId: jackson2-api pluginVersion: 1981.v17df70e84a_a_1 replaces: groupId: org.apache.commons diff --git a/docs/recipes/jenkins/upgradejavaversion.md b/docs/recipes/jenkins/upgradejavaversion.md index 2842a5598..defb3d19b 100644 --- a/docs/recipes/jenkins/upgradejavaversion.md +++ b/docs/recipes/jenkins/upgradejavaversion.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpgradeJavaVersionExample displayName: Upgrade jenkins java version example recipeList: - - org.openrewrite.jenkins.UpgradeJavaVersion: version: 17 + - org.openrewrite.jenkins.UpgradeJavaVersion: + version: 17 distribution: openjdk ``` diff --git a/docs/recipes/jenkins/upgradeversionproperty.md b/docs/recipes/jenkins/upgradeversionproperty.md index 4187a4682..0e32ae5ee 100644 --- a/docs/recipes/jenkins/upgradeversionproperty.md +++ b/docs/recipes/jenkins/upgradeversionproperty.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpgradeVersionPropertyExample displayName: Upgrade property's value to version example recipeList: - - org.openrewrite.jenkins.UpgradeVersionProperty: key: jenkins.version + - org.openrewrite.jenkins.UpgradeVersionProperty: + key: jenkins.version minimumVersion: 2.375.1 ``` diff --git a/docs/recipes/json/changekey.md b/docs/recipes/json/changekey.md index 56ba9d6b8..9be59213e 100644 --- a/docs/recipes/json/changekey.md +++ b/docs/recipes/json/changekey.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeKeyExample displayName: Change key example recipeList: - - org.openrewrite.json.ChangeKey: oldKeyPath: $.subjects.kind + - org.openrewrite.json.ChangeKey: + oldKeyPath: $.subjects.kind newKey: kind ``` diff --git a/docs/recipes/json/changevalue.md b/docs/recipes/json/changevalue.md index f7c498b29..0629ef3be 100644 --- a/docs/recipes/json/changevalue.md +++ b/docs/recipes/json/changevalue.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeValueExample displayName: Change value example recipeList: - - org.openrewrite.json.ChangeValue: oldKeyPath: $.subjects.kind + - org.openrewrite.json.ChangeValue: + oldKeyPath: $.subjects.kind value: 'Deployment' ``` diff --git a/docs/recipes/json/deletekey.md b/docs/recipes/json/deletekey.md index 9727491ff..ef79b2de5 100644 --- a/docs/recipes/json/deletekey.md +++ b/docs/recipes/json/deletekey.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.DeleteKeyExample displayName: Delete key example recipeList: - - org.openrewrite.json.DeleteKey: keyPath: $.subjects.kind + - org.openrewrite.json.DeleteKey: + keyPath: $.subjects.kind ``` Now that `com.yourorg.DeleteKeyExample` has been defined, activate it in your build file: diff --git a/docs/recipes/json/search/findkey.md b/docs/recipes/json/search/findkey.md index 661086a21..9cbce12e3 100644 --- a/docs/recipes/json/search/findkey.md +++ b/docs/recipes/json/search/findkey.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindKeyExample displayName: Find JSON object members example recipeList: - - org.openrewrite.json.search.FindKey: key: $.subjects.kind + - org.openrewrite.json.search.FindKey: + key: $.subjects.kind ``` Now that `com.yourorg.FindKeyExample` has been defined, activate it in your build file: diff --git a/docs/recipes/kotlin/renametypealias.md b/docs/recipes/kotlin/renametypealias.md index 65941d9de..717dae762 100644 --- a/docs/recipes/kotlin/renametypealias.md +++ b/docs/recipes/kotlin/renametypealias.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RenameTypeAliasExample displayName: Rename type alias example recipeList: - - org.openrewrite.kotlin.RenameTypeAlias: aliasName: OldAlias + - org.openrewrite.kotlin.RenameTypeAlias: + aliasName: OldAlias newName: NewAlias fullyQualifiedAliasedType: org.junit.Assume ``` diff --git a/docs/recipes/maven/addannotationprocessor.md b/docs/recipes/maven/addannotationprocessor.md index 94f960bdd..f26837d0c 100644 --- a/docs/recipes/maven/addannotationprocessor.md +++ b/docs/recipes/maven/addannotationprocessor.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddAnnotationProcessorExample displayName: Add an annotation processor to `maven-compiler-plugin` example recipeList: - - org.openrewrite.maven.AddAnnotationProcessor: groupId: org.projectlombok + - org.openrewrite.maven.AddAnnotationProcessor: + groupId: org.projectlombok artifactId: lombok-mapstruct-binding version: 0.2.0 ``` diff --git a/docs/recipes/maven/addcommenttomavendependency.md b/docs/recipes/maven/addcommenttomavendependency.md index aa116f9b3..04108032b 100644 --- a/docs/recipes/maven/addcommenttomavendependency.md +++ b/docs/recipes/maven/addcommenttomavendependency.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddCommentToMavenDependencyExample displayName: Add a comment to a `Maven` dependency example recipeList: - - org.openrewrite.maven.AddCommentToMavenDependency: xPath: /project/dependencies/dependency + - org.openrewrite.maven.AddCommentToMavenDependency: + xPath: /project/dependencies/dependency groupId: com.google.guava artifactId: guava commentText: This is excluded due to CVE and will be removed when we upgrade the next version is available. diff --git a/docs/recipes/maven/adddependency.md b/docs/recipes/maven/adddependency.md index f7414cc33..2fe99571a 100644 --- a/docs/recipes/maven/adddependency.md +++ b/docs/recipes/maven/adddependency.md @@ -48,7 +48,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddDependencyExample displayName: Add Maven dependency example recipeList: - - org.openrewrite.maven.AddDependency: groupId: com.google.guava + - org.openrewrite.maven.AddDependency: + groupId: com.google.guava artifactId: guava version: 29.X versionPattern: '-jre' diff --git a/docs/recipes/maven/adddevelocitymavenextension.md b/docs/recipes/maven/adddevelocitymavenextension.md index 0776f48aa..2afb95580 100644 --- a/docs/recipes/maven/adddevelocitymavenextension.md +++ b/docs/recipes/maven/adddevelocitymavenextension.md @@ -42,7 +42,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddDevelocityMavenExtensionExample displayName: Add the Develocity Maven extension example recipeList: - - org.openrewrite.maven.AddDevelocityMavenExtension: version: 1.17.4 + - org.openrewrite.maven.AddDevelocityMavenExtension: + version: 1.17.4 server: https://scans.gradle.com/ allowUntrustedServer: true fileFingerprints: true diff --git a/docs/recipes/maven/addmanageddependency.md b/docs/recipes/maven/addmanageddependency.md index a47bb5405..a5a246537 100644 --- a/docs/recipes/maven/addmanageddependency.md +++ b/docs/recipes/maven/addmanageddependency.md @@ -46,7 +46,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddManagedDependencyExample displayName: Add managed Maven dependency example recipeList: - - org.openrewrite.maven.AddManagedDependency: groupId: org.apache.logging.log4j + - org.openrewrite.maven.AddManagedDependency: + groupId: org.apache.logging.log4j artifactId: log4j-bom version: latest.release scope: import diff --git a/docs/recipes/maven/addparentpom.md b/docs/recipes/maven/addparentpom.md index ded595c2f..b7b25da9f 100644 --- a/docs/recipes/maven/addparentpom.md +++ b/docs/recipes/maven/addparentpom.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddParentPomExample displayName: Add Maven parent example recipeList: - - org.openrewrite.maven.AddParentPom: groupId: org.springframework.boot + - org.openrewrite.maven.AddParentPom: + groupId: org.springframework.boot artifactId: spring-boot-starter-parent version: 29.X relativePath: ../pom.xml diff --git a/docs/recipes/maven/addplugin.md b/docs/recipes/maven/addplugin.md index c6c593b29..3b8c4faa8 100644 --- a/docs/recipes/maven/addplugin.md +++ b/docs/recipes/maven/addplugin.md @@ -43,7 +43,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddPluginExample displayName: Add Maven plugin example recipeList: - - org.openrewrite.maven.AddPlugin: groupId: org.openrewrite.maven + - org.openrewrite.maven.AddPlugin: + groupId: org.openrewrite.maven artifactId: rewrite-maven-plugin version: 1.0.0 configuration: foo diff --git a/docs/recipes/maven/addplugindependency.md b/docs/recipes/maven/addplugindependency.md index f78b499a3..324c0f2bd 100644 --- a/docs/recipes/maven/addplugindependency.md +++ b/docs/recipes/maven/addplugindependency.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddPluginDependencyExample displayName: Add Maven plugin dependencies example recipeList: - - org.openrewrite.maven.AddPluginDependency: pluginGroupId: org.openrewrite.maven + - org.openrewrite.maven.AddPluginDependency: + pluginGroupId: org.openrewrite.maven pluginArtifactId: rewrite-maven-plugin groupId: org.openrewrite.recipe artifactId: org.openrewrite.recipe diff --git a/docs/recipes/maven/addprofile.md b/docs/recipes/maven/addprofile.md index 7c231ff27..de745749f 100644 --- a/docs/recipes/maven/addprofile.md +++ b/docs/recipes/maven/addprofile.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddProfileExample displayName: Add Maven profile example recipeList: - - org.openrewrite.maven.AddProfile: id: default + - org.openrewrite.maven.AddProfile: + id: default activation: foo properties: foobar build: foo diff --git a/docs/recipes/maven/addproperty.md b/docs/recipes/maven/addproperty.md index c29a9c02a..66b57719e 100644 --- a/docs/recipes/maven/addproperty.md +++ b/docs/recipes/maven/addproperty.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddPropertyExample displayName: Add Maven project property example recipeList: - - org.openrewrite.maven.AddProperty: key: junit.version + - org.openrewrite.maven.AddProperty: + key: junit.version value: 4.13 ``` diff --git a/docs/recipes/maven/addrepository.md b/docs/recipes/maven/addrepository.md index 724f69266..e57d81c94 100644 --- a/docs/recipes/maven/addrepository.md +++ b/docs/recipes/maven/addrepository.md @@ -47,7 +47,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddRepositoryExample displayName: Add repository example recipeList: - - org.openrewrite.maven.AddRepository: id: repo-id + - org.openrewrite.maven.AddRepository: + id: repo-id url: http://myrepo.maven.com/repo repoName: My Great Repo Name layout: default diff --git a/docs/recipes/maven/addruntimeconfig.md b/docs/recipes/maven/addruntimeconfig.md index 35b8d6bf6..9f1ca2e75 100644 --- a/docs/recipes/maven/addruntimeconfig.md +++ b/docs/recipes/maven/addruntimeconfig.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddRuntimeConfigExample displayName: Add a configuration option for the Maven runtime example recipeList: - - org.openrewrite.maven.AddRuntimeConfig: relativeConfigFileName: maven.config + - org.openrewrite.maven.AddRuntimeConfig: + relativeConfigFileName: maven.config flag: '-T' argument: 3 separator: = diff --git a/docs/recipes/maven/changedependencyclassifier.md b/docs/recipes/maven/changedependencyclassifier.md index 8d6fd41c1..5f5f7a503 100644 --- a/docs/recipes/maven/changedependencyclassifier.md +++ b/docs/recipes/maven/changedependencyclassifier.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeDependencyClassifierExample displayName: Change Maven dependency classifier example recipeList: - - org.openrewrite.maven.ChangeDependencyClassifier: groupId: com.google.guava + - org.openrewrite.maven.ChangeDependencyClassifier: + groupId: com.google.guava artifactId: guava newClassifier: jar changeManagedDependency: true diff --git a/docs/recipes/maven/changedependencygroupidandartifactid.md b/docs/recipes/maven/changedependencygroupidandartifactid.md index f3ceaa817..f5686c0fb 100644 --- a/docs/recipes/maven/changedependencygroupidandartifactid.md +++ b/docs/recipes/maven/changedependencygroupidandartifactid.md @@ -47,7 +47,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeDependencyGroupIdAndArtifactIdExample displayName: Change Maven dependency example recipeList: - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: oldGroupId: org.openrewrite.recipe + - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: + oldGroupId: org.openrewrite.recipe oldArtifactId: rewrite-testing-frameworks newGroupId: corp.internal.openrewrite.recipe newArtifactId: rewrite-testing-frameworks diff --git a/docs/recipes/maven/changedependencyscope.md b/docs/recipes/maven/changedependencyscope.md index 309296356..a7e22ad1b 100644 --- a/docs/recipes/maven/changedependencyscope.md +++ b/docs/recipes/maven/changedependencyscope.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeDependencyScopeExample displayName: Change Maven dependency scope example recipeList: - - org.openrewrite.maven.ChangeDependencyScope: groupId: com.google.guava + - org.openrewrite.maven.ChangeDependencyScope: + groupId: com.google.guava artifactId: guava newScope: compile ``` diff --git a/docs/recipes/maven/changemanageddependencygroupidandartifactid.md b/docs/recipes/maven/changemanageddependencygroupidandartifactid.md index c2e34f009..e4bb21f82 100644 --- a/docs/recipes/maven/changemanageddependencygroupidandartifactid.md +++ b/docs/recipes/maven/changemanageddependencygroupidandartifactid.md @@ -42,7 +42,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeManagedDependencyGroupIdAndArtifactIdExample displayName: Change Maven managed dependency groupId, artifactId and optionally the version example recipeList: - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: oldGroupId: org.openrewrite.recipe + - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: + oldGroupId: org.openrewrite.recipe oldArtifactId: rewrite-testing-frameworks newGroupId: corp.internal.openrewrite.recipe newArtifactId: rewrite-testing-frameworks diff --git a/docs/recipes/maven/changepackaging.md b/docs/recipes/maven/changepackaging.md index 2a166df34..8ccd27e5f 100644 --- a/docs/recipes/maven/changepackaging.md +++ b/docs/recipes/maven/changepackaging.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangePackagingExample displayName: Set Maven project packaging example recipeList: - - org.openrewrite.maven.ChangePackaging: groupId: org.openrewrite.* + - org.openrewrite.maven.ChangePackaging: + groupId: org.openrewrite.* artifactId: rewrite-* packaging: jar oldPackaging: jar diff --git a/docs/recipes/maven/changeparentpom.md b/docs/recipes/maven/changeparentpom.md index 75592c549..42f5d8dc3 100644 --- a/docs/recipes/maven/changeparentpom.md +++ b/docs/recipes/maven/changeparentpom.md @@ -45,7 +45,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeParentPomExample displayName: Change Maven parent example recipeList: - - org.openrewrite.maven.ChangeParentPom: oldGroupId: org.springframework.boot + - org.openrewrite.maven.ChangeParentPom: + oldGroupId: org.springframework.boot newGroupId: org.springframework.boot oldArtifactId: spring-boot-starter-parent newArtifactId: spring-boot-starter-parent diff --git a/docs/recipes/maven/changepluginconfiguration.md b/docs/recipes/maven/changepluginconfiguration.md index c1fce3fde..1711b55e1 100644 --- a/docs/recipes/maven/changepluginconfiguration.md +++ b/docs/recipes/maven/changepluginconfiguration.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangePluginConfigurationExample displayName: Change Maven plugin configuration example recipeList: - - org.openrewrite.maven.ChangePluginConfiguration: groupId: org.openrewrite.maven + - org.openrewrite.maven.ChangePluginConfiguration: + groupId: org.openrewrite.maven artifactId: rewrite-maven-plugin configuration: bar ``` diff --git a/docs/recipes/maven/changeplugindependencies.md b/docs/recipes/maven/changeplugindependencies.md index 810b6bc73..c984b3ece 100644 --- a/docs/recipes/maven/changeplugindependencies.md +++ b/docs/recipes/maven/changeplugindependencies.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangePluginDependenciesExample displayName: Change Maven plugin dependencies example recipeList: - - org.openrewrite.maven.ChangePluginDependencies: groupId: org.openrewrite.maven + - org.openrewrite.maven.ChangePluginDependencies: + groupId: org.openrewrite.maven artifactId: rewrite-maven-plugin dependencies: org.openrewrite.recipe:rewrite-spring:1.0.0, org.openrewrite.recipe:rewrite-testing-frameworks:1.0.0 ``` diff --git a/docs/recipes/maven/changepluginexecutions.md b/docs/recipes/maven/changepluginexecutions.md index 6637013d7..5f4e8740d 100644 --- a/docs/recipes/maven/changepluginexecutions.md +++ b/docs/recipes/maven/changepluginexecutions.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangePluginExecutionsExample displayName: Change Maven plugin executions example recipeList: - - org.openrewrite.maven.ChangePluginExecutions: groupId: org.openrewrite.maven + - org.openrewrite.maven.ChangePluginExecutions: + groupId: org.openrewrite.maven artifactId: rewrite-maven-plugin executions: validatedryRun ``` diff --git a/docs/recipes/maven/changeplugingroupidandartifactid.md b/docs/recipes/maven/changeplugingroupidandartifactid.md index b3a74579f..611336528 100644 --- a/docs/recipes/maven/changeplugingroupidandartifactid.md +++ b/docs/recipes/maven/changeplugingroupidandartifactid.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangePluginGroupIdAndArtifactIdExample displayName: Change Maven plugin group and artifact ID example recipeList: - - org.openrewrite.maven.ChangePluginGroupIdAndArtifactId: oldGroupId: org.openrewrite.recipe + - org.openrewrite.maven.ChangePluginGroupIdAndArtifactId: + oldGroupId: org.openrewrite.recipe oldArtifactId: my-deprecated-maven-plugin newGroupId: corp.internal.openrewrite.recipe newArtifactId: my-new-maven-plugin diff --git a/docs/recipes/maven/changeprojectversion.md b/docs/recipes/maven/changeprojectversion.md index 70f1cc83e..3f41c5336 100644 --- a/docs/recipes/maven/changeprojectversion.md +++ b/docs/recipes/maven/changeprojectversion.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeProjectVersionExample displayName: Change Maven Project Version example recipeList: - - org.openrewrite.maven.ChangeProjectVersion: groupId: org.openrewrite + - org.openrewrite.maven.ChangeProjectVersion: + groupId: org.openrewrite artifactId: '*' newVersion: 8.4.2 ``` diff --git a/docs/recipes/maven/changepropertyvalue.md b/docs/recipes/maven/changepropertyvalue.md index 82349a02c..aaf20ce4c 100644 --- a/docs/recipes/maven/changepropertyvalue.md +++ b/docs/recipes/maven/changepropertyvalue.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangePropertyValueExample displayName: Change Maven project property value example recipeList: - - org.openrewrite.maven.ChangePropertyValue: key: junit.version + - org.openrewrite.maven.ChangePropertyValue: + key: junit.version newValue: 4.13 ``` diff --git a/docs/recipes/maven/excludedependency.md b/docs/recipes/maven/excludedependency.md index ee4a8c77a..40170f3c1 100644 --- a/docs/recipes/maven/excludedependency.md +++ b/docs/recipes/maven/excludedependency.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ExcludeDependencyExample displayName: Exclude Maven dependency example recipeList: - - org.openrewrite.maven.ExcludeDependency: groupId: com.google.guava + - org.openrewrite.maven.ExcludeDependency: + groupId: com.google.guava artifactId: guava scope: compile ``` diff --git a/docs/recipes/maven/incrementprojectversion.md b/docs/recipes/maven/incrementprojectversion.md index 4e7374e4f..e5c544568 100644 --- a/docs/recipes/maven/incrementprojectversion.md +++ b/docs/recipes/maven/incrementprojectversion.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.IncrementProjectVersionExample displayName: Increment Maven project version example recipeList: - - org.openrewrite.maven.IncrementProjectVersion: groupId: org.openrewrite + - org.openrewrite.maven.IncrementProjectVersion: + groupId: org.openrewrite artifactId: '*' digit: PATCH ``` diff --git a/docs/recipes/maven/managedependencies.md b/docs/recipes/maven/managedependencies.md index 5ce6f26eb..3eb865193 100644 --- a/docs/recipes/maven/managedependencies.md +++ b/docs/recipes/maven/managedependencies.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ManageDependenciesExample displayName: Manage dependencies example recipeList: - - org.openrewrite.maven.ManageDependencies: groupPattern: com.google.* + - org.openrewrite.maven.ManageDependencies: + groupPattern: com.google.* artifactPattern: guava* ``` diff --git a/docs/recipes/maven/removedependency.md b/docs/recipes/maven/removedependency.md index 41ede8c7e..f0f8bac93 100644 --- a/docs/recipes/maven/removedependency.md +++ b/docs/recipes/maven/removedependency.md @@ -42,7 +42,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveDependencyExample displayName: Remove Maven dependency example recipeList: - - org.openrewrite.maven.RemoveDependency: groupId: com.google.guava + - org.openrewrite.maven.RemoveDependency: + groupId: com.google.guava artifactId: guava scope: compile ``` diff --git a/docs/recipes/maven/removeexclusion.md b/docs/recipes/maven/removeexclusion.md index f3c785b36..73b9ae0a8 100644 --- a/docs/recipes/maven/removeexclusion.md +++ b/docs/recipes/maven/removeexclusion.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveExclusionExample displayName: Remove exclusion example recipeList: - - org.openrewrite.maven.RemoveExclusion: groupId: com.google.guava + - org.openrewrite.maven.RemoveExclusion: + groupId: com.google.guava artifactId: guava exclusionGroupId: com.google.guava exclusionArtifactId: guava diff --git a/docs/recipes/maven/removemanageddependency.md b/docs/recipes/maven/removemanageddependency.md index 192a8f914..a9d220993 100644 --- a/docs/recipes/maven/removemanageddependency.md +++ b/docs/recipes/maven/removemanageddependency.md @@ -42,7 +42,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveManagedDependencyExample displayName: Remove Maven managed dependency example recipeList: - - org.openrewrite.maven.RemoveManagedDependency: groupId: com.google.guava + - org.openrewrite.maven.RemoveManagedDependency: + groupId: com.google.guava artifactId: guava scope: compile ``` diff --git a/docs/recipes/maven/removeplugin.md b/docs/recipes/maven/removeplugin.md index e2f68cefd..965f205e8 100644 --- a/docs/recipes/maven/removeplugin.md +++ b/docs/recipes/maven/removeplugin.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemovePluginExample displayName: Remove Maven plugin example recipeList: - - org.openrewrite.maven.RemovePlugin: groupId: org.openrewrite.maven + - org.openrewrite.maven.RemovePlugin: + groupId: org.openrewrite.maven artifactId: rewrite-maven-plugin ``` diff --git a/docs/recipes/maven/removeplugindependency.md b/docs/recipes/maven/removeplugindependency.md index 6231770b0..8feed54f7 100644 --- a/docs/recipes/maven/removeplugindependency.md +++ b/docs/recipes/maven/removeplugindependency.md @@ -43,7 +43,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemovePluginDependencyExample displayName: Remove Maven plugin dependency example recipeList: - - org.openrewrite.maven.RemovePluginDependency: pluginGroupId: org.openrewrite.maven + - org.openrewrite.maven.RemovePluginDependency: + pluginGroupId: org.openrewrite.maven pluginArtifactId: rewrite-maven-plugin groupId: com.google.guava artifactId: guava diff --git a/docs/recipes/maven/removeproperty.md b/docs/recipes/maven/removeproperty.md index 52cd5ac59..4da4ffb7d 100644 --- a/docs/recipes/maven/removeproperty.md +++ b/docs/recipes/maven/removeproperty.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemovePropertyExample displayName: Remove Maven project property example recipeList: - - org.openrewrite.maven.RemoveProperty: propertyName: junit.version + - org.openrewrite.maven.RemoveProperty: + propertyName: junit.version ``` Now that `com.yourorg.RemovePropertyExample` has been defined, activate it in your build file: diff --git a/docs/recipes/maven/removerepository.md b/docs/recipes/maven/removerepository.md index 60aca9bd8..1c393a6b4 100644 --- a/docs/recipes/maven/removerepository.md +++ b/docs/recipes/maven/removerepository.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveRepositoryExample displayName: Remove repository example recipeList: - - org.openrewrite.maven.RemoveRepository: id: repo-id + - org.openrewrite.maven.RemoveRepository: + id: repo-id url: http://myrepo.maven.com/repo ``` diff --git a/docs/recipes/maven/renamepropertykey.md b/docs/recipes/maven/renamepropertykey.md index 6618b3a6c..7f605eb87 100644 --- a/docs/recipes/maven/renamepropertykey.md +++ b/docs/recipes/maven/renamepropertykey.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RenamePropertyKeyExample displayName: Rename Maven property key example recipeList: - - org.openrewrite.maven.RenamePropertyKey: oldKey: junit.version + - org.openrewrite.maven.RenamePropertyKey: + oldKey: junit.version newKey: version.org.junit ``` diff --git a/docs/recipes/maven/search/dependencyinsight.md b/docs/recipes/maven/search/dependencyinsight.md index 1cddd291d..9c7a7203f 100644 --- a/docs/recipes/maven/search/dependencyinsight.md +++ b/docs/recipes/maven/search/dependencyinsight.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.DependencyInsightExample displayName: Maven dependency insight example recipeList: - - org.openrewrite.maven.search.DependencyInsight: groupIdPattern: com.fasterxml.jackson.module + - org.openrewrite.maven.search.DependencyInsight: + groupIdPattern: com.fasterxml.jackson.module artifactIdPattern: jackson-module-* scope: compile version: 1.x diff --git a/docs/recipes/maven/search/doesnotincludedependency.md b/docs/recipes/maven/search/doesnotincludedependency.md index fe459b3f2..942e07845 100644 --- a/docs/recipes/maven/search/doesnotincludedependency.md +++ b/docs/recipes/maven/search/doesnotincludedependency.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.DoesNotIncludeDependencyExample displayName: Does not include Maven dependency example recipeList: - - org.openrewrite.maven.search.DoesNotIncludeDependency: groupId: com.google.guava + - org.openrewrite.maven.search.DoesNotIncludeDependency: + groupId: com.google.guava artifactId: guava onlyDirect: true scope: compile diff --git a/docs/recipes/maven/search/effectivedependencies.md b/docs/recipes/maven/search/effectivedependencies.md index eaf77162c..06856dbe1 100644 --- a/docs/recipes/maven/search/effectivedependencies.md +++ b/docs/recipes/maven/search/effectivedependencies.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.EffectiveDependenciesExample displayName: Effective dependencies example recipeList: - - org.openrewrite.maven.search.EffectiveDependencies: scope: compile + - org.openrewrite.maven.search.EffectiveDependencies: + scope: compile ``` Now that `com.yourorg.EffectiveDependenciesExample` has been defined, activate it in your build file: diff --git a/docs/recipes/maven/search/finddependency.md b/docs/recipes/maven/search/finddependency.md index 195585fe7..7f15b438b 100644 --- a/docs/recipes/maven/search/finddependency.md +++ b/docs/recipes/maven/search/finddependency.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindDependencyExample displayName: Find Maven dependency example recipeList: - - org.openrewrite.maven.search.FindDependency: groupId: com.google.guava + - org.openrewrite.maven.search.FindDependency: + groupId: com.google.guava artifactId: guava version: 3.0.0 versionPattern: '-jre' diff --git a/docs/recipes/maven/search/findmanageddependency.md b/docs/recipes/maven/search/findmanageddependency.md index 7af997a5c..007653875 100644 --- a/docs/recipes/maven/search/findmanageddependency.md +++ b/docs/recipes/maven/search/findmanageddependency.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindManagedDependencyExample displayName: Find Maven dependency management entry example recipeList: - - org.openrewrite.maven.search.FindManagedDependency: groupId: com.google.guava + - org.openrewrite.maven.search.FindManagedDependency: + groupId: com.google.guava artifactId: guava version: 3.0.0 versionPattern: '-jre' diff --git a/docs/recipes/maven/search/findplugin.md b/docs/recipes/maven/search/findplugin.md index 8eaa1e200..cceb4b7b2 100644 --- a/docs/recipes/maven/search/findplugin.md +++ b/docs/recipes/maven/search/findplugin.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindPluginExample displayName: Find Maven plugin example recipeList: - - org.openrewrite.maven.search.FindPlugin: groupId: org.openrewrite.maven + - org.openrewrite.maven.search.FindPlugin: + groupId: org.openrewrite.maven artifactId: rewrite-maven-plugin ``` diff --git a/docs/recipes/maven/search/findproperties.md b/docs/recipes/maven/search/findproperties.md index edb60382b..cbb43546c 100644 --- a/docs/recipes/maven/search/findproperties.md +++ b/docs/recipes/maven/search/findproperties.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindPropertiesExample displayName: Find Maven project properties example recipeList: - - org.openrewrite.maven.search.FindProperties: propertyPattern: guava.* + - org.openrewrite.maven.search.FindProperties: + propertyPattern: guava.* valuePattern: 28.* ``` diff --git a/docs/recipes/maven/search/parentpominsight.md b/docs/recipes/maven/search/parentpominsight.md index c96f614bd..1c3cb7eee 100644 --- a/docs/recipes/maven/search/parentpominsight.md +++ b/docs/recipes/maven/search/parentpominsight.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ParentPomInsightExample displayName: Maven parent insight example recipeList: - - org.openrewrite.maven.search.ParentPomInsight: groupIdPattern: org.springframework.boot + - org.openrewrite.maven.search.ParentPomInsight: + groupIdPattern: org.springframework.boot artifactIdPattern: spring-boot-starter-* version: 1.x ``` diff --git a/docs/recipes/maven/spring/upgradeexplicitspringbootdependencies.md b/docs/recipes/maven/spring/upgradeexplicitspringbootdependencies.md index 42d08073f..e64e30e68 100644 --- a/docs/recipes/maven/spring/upgradeexplicitspringbootdependencies.md +++ b/docs/recipes/maven/spring/upgradeexplicitspringbootdependencies.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpgradeExplicitSpringBootDependenciesExample displayName: Upgrade Spring dependencies example recipeList: - - org.openrewrite.maven.spring.UpgradeExplicitSpringBootDependencies: fromVersion: 2.7.+ + - org.openrewrite.maven.spring.UpgradeExplicitSpringBootDependencies: + fromVersion: 2.7.+ toVersion: 3.0.0-M3 ``` diff --git a/docs/recipes/maven/upgradedependencyversion.md b/docs/recipes/maven/upgradedependencyversion.md index 851e7fb15..efc0ad568 100644 --- a/docs/recipes/maven/upgradedependencyversion.md +++ b/docs/recipes/maven/upgradedependencyversion.md @@ -42,7 +42,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpgradeDependencyVersionExample displayName: Upgrade Maven dependency version example recipeList: - - org.openrewrite.maven.UpgradeDependencyVersion: groupId: com.fasterxml.jackson* + - org.openrewrite.maven.UpgradeDependencyVersion: + groupId: com.fasterxml.jackson* artifactId: jackson-module* newVersion: 29.X versionPattern: '-jre' diff --git a/docs/recipes/maven/upgradeparentversion.md b/docs/recipes/maven/upgradeparentversion.md index 2083810f1..c206b3ef8 100644 --- a/docs/recipes/maven/upgradeparentversion.md +++ b/docs/recipes/maven/upgradeparentversion.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpgradeParentVersionExample displayName: Upgrade Maven parent project version example recipeList: - - org.openrewrite.maven.UpgradeParentVersion: groupId: org.springframework.boot + - org.openrewrite.maven.UpgradeParentVersion: + groupId: org.springframework.boot artifactId: spring-boot-parent newVersion: 29.X versionPattern: '-jre' diff --git a/docs/recipes/maven/upgradepluginversion.md b/docs/recipes/maven/upgradepluginversion.md index 5df7a461a..38f7bdc3b 100644 --- a/docs/recipes/maven/upgradepluginversion.md +++ b/docs/recipes/maven/upgradepluginversion.md @@ -42,7 +42,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpgradePluginVersionExample displayName: Upgrade Maven plugin version example recipeList: - - org.openrewrite.maven.UpgradePluginVersion: groupId: org.openrewrite.maven + - org.openrewrite.maven.UpgradePluginVersion: + groupId: org.openrewrite.maven artifactId: rewrite-maven-plugin newVersion: 29.X versionPattern: '-jre' diff --git a/docs/recipes/maven/upgradetransitivedependencyversion.md b/docs/recipes/maven/upgradetransitivedependencyversion.md index 296ee3c72..6ba9a8152 100644 --- a/docs/recipes/maven/upgradetransitivedependencyversion.md +++ b/docs/recipes/maven/upgradetransitivedependencyversion.md @@ -46,7 +46,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpgradeTransitiveDependencyVersionExample displayName: Upgrade transitive Maven dependencies example recipeList: - - org.openrewrite.maven.UpgradeTransitiveDependencyVersion: groupId: org.apache.logging.log4j + - org.openrewrite.maven.UpgradeTransitiveDependencyVersion: + groupId: org.apache.logging.log4j artifactId: log4j-bom version: latest.release scope: import diff --git a/docs/recipes/org/apache/camel/upgrade/customrecipes/changepropertykeywithcasechange.md b/docs/recipes/org/apache/camel/upgrade/customrecipes/changepropertykeywithcasechange.md index 666394d9f..79fddef4d 100644 --- a/docs/recipes/org/apache/camel/upgrade/customrecipes/changepropertykeywithcasechange.md +++ b/docs/recipes/org/apache/camel/upgrade/customrecipes/changepropertykeywithcasechange.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangePropertyKeyWithCaseChangeExample displayName: Change prefix of property with Camel case example recipeList: - - org.apache.camel.upgrade.customRecipes.ChangePropertyKeyWithCaseChange: oldPropertyKey: null + - org.apache.camel.upgrade.customRecipes.ChangePropertyKeyWithCaseChange: + oldPropertyKey: null newPrefix: null ``` diff --git a/docs/recipes/org/apache/camel/upgrade/customrecipes/movegettertoextendedcamelcontext.md b/docs/recipes/org/apache/camel/upgrade/customrecipes/movegettertoextendedcamelcontext.md index ab354b673..cdaae494a 100644 --- a/docs/recipes/org/apache/camel/upgrade/customrecipes/movegettertoextendedcamelcontext.md +++ b/docs/recipes/org/apache/camel/upgrade/customrecipes/movegettertoextendedcamelcontext.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.MoveGetterToExtendedCamelContextExample displayName: Move getter from context to ExtendedCamelContext. example recipeList: - - org.apache.camel.upgrade.customRecipes.MoveGetterToExtendedCamelContext: oldMethodName: null + - org.apache.camel.upgrade.customRecipes.MoveGetterToExtendedCamelContext: + oldMethodName: null ``` Now that `com.yourorg.MoveGetterToExtendedCamelContextExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-third-party:{{VERSION_REWRITE_THIRD_PARTY}}` in your build file: diff --git a/docs/recipes/org/apache/camel/upgrade/customrecipes/movegettertopluginhelper.md b/docs/recipes/org/apache/camel/upgrade/customrecipes/movegettertopluginhelper.md index 4cbbae817..c887257c3 100644 --- a/docs/recipes/org/apache/camel/upgrade/customrecipes/movegettertopluginhelper.md +++ b/docs/recipes/org/apache/camel/upgrade/customrecipes/movegettertopluginhelper.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.MoveGetterToPluginHelperExample displayName: Move getter from context to PluginHelper. example recipeList: - - org.apache.camel.upgrade.customRecipes.MoveGetterToPluginHelper: oldMethodName: null + - org.apache.camel.upgrade.customRecipes.MoveGetterToPluginHelper: + oldMethodName: null ``` Now that `com.yourorg.MoveGetterToPluginHelperExample` has been defined, activate it and take a dependency on `org.openrewrite.recipe:rewrite-third-party:{{VERSION_REWRITE_THIRD_PARTY}}` in your build file: diff --git a/docs/recipes/properties/addproperty.md b/docs/recipes/properties/addproperty.md index 53aa7e729..8fb33d6be 100644 --- a/docs/recipes/properties/addproperty.md +++ b/docs/recipes/properties/addproperty.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddPropertyExample displayName: Add a new property example recipeList: - - org.openrewrite.properties.AddProperty: property: management.metrics.enable.process.files + - org.openrewrite.properties.AddProperty: + property: management.metrics.enable.process.files value: newPropValue comment: This is a comment delimiter: : diff --git a/docs/recipes/properties/addpropertycomment.md b/docs/recipes/properties/addpropertycomment.md index b4b66b083..76d5b4dad 100644 --- a/docs/recipes/properties/addpropertycomment.md +++ b/docs/recipes/properties/addpropertycomment.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddPropertyCommentExample displayName: Add comment before property key example recipeList: - - org.openrewrite.properties.AddPropertyComment: propertyKey: management.metrics.binders + - org.openrewrite.properties.AddPropertyComment: + propertyKey: management.metrics.binders comment: comment commentOutProperty: true ``` diff --git a/docs/recipes/properties/changepropertykey.md b/docs/recipes/properties/changepropertykey.md index d2f124f0b..b575f6da8 100644 --- a/docs/recipes/properties/changepropertykey.md +++ b/docs/recipes/properties/changepropertykey.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangePropertyKeyExample displayName: Change property key example recipeList: - - org.openrewrite.properties.ChangePropertyKey: oldPropertyKey: management.metrics.binders.files.enabled + - org.openrewrite.properties.ChangePropertyKey: + oldPropertyKey: management.metrics.binders.files.enabled newPropertyKey: management.metrics.enable.process.files ``` diff --git a/docs/recipes/properties/changepropertyvalue.md b/docs/recipes/properties/changepropertyvalue.md index 14f67c58d..593ef8530 100644 --- a/docs/recipes/properties/changepropertyvalue.md +++ b/docs/recipes/properties/changepropertyvalue.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangePropertyValueExample displayName: Change property value example recipeList: - - org.openrewrite.properties.ChangePropertyValue: propertyKey: management.metrics.binders.*.enabled + - org.openrewrite.properties.ChangePropertyValue: + propertyKey: management.metrics.binders.*.enabled newValue: newValue oldValue: oldValue ``` diff --git a/docs/recipes/properties/createpropertiesfile.md b/docs/recipes/properties/createpropertiesfile.md index d719f5b8b..38d83cdd1 100644 --- a/docs/recipes/properties/createpropertiesfile.md +++ b/docs/recipes/properties/createpropertiesfile.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.CreatePropertiesFileExample displayName: Create Properties file example recipeList: - - org.openrewrite.properties.CreatePropertiesFile: relativeFileName: foo/bar/baz.properties + - org.openrewrite.properties.CreatePropertiesFile: + relativeFileName: foo/bar/baz.properties fileContents: a.property=value ``` diff --git a/docs/recipes/properties/deleteproperty.md b/docs/recipes/properties/deleteproperty.md index bc6843129..c85a3d493 100644 --- a/docs/recipes/properties/deleteproperty.md +++ b/docs/recipes/properties/deleteproperty.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.DeletePropertyExample displayName: Delete Property example recipeList: - - org.openrewrite.properties.DeleteProperty: propertyKey: management.metrics.binders.files.enabled or management.metrics.* + - org.openrewrite.properties.DeleteProperty: + propertyKey: management.metrics.binders.files.enabled or management.metrics.* ``` Now that `com.yourorg.DeletePropertyExample` has been defined, activate it in your build file: diff --git a/docs/recipes/properties/search/findproperties.md b/docs/recipes/properties/search/findproperties.md index 5e6a79192..348393841 100644 --- a/docs/recipes/properties/search/findproperties.md +++ b/docs/recipes/properties/search/findproperties.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindPropertiesExample displayName: Find property example recipeList: - - org.openrewrite.properties.search.FindProperties: propertyKey: management.metrics.binders.files.enabled + - org.openrewrite.properties.search.FindProperties: + propertyKey: management.metrics.binders.files.enabled ``` Now that `com.yourorg.FindPropertiesExample` has been defined, activate it in your build file: diff --git a/docs/recipes/quarkus/addquarkusproperty.md b/docs/recipes/quarkus/addquarkusproperty.md index cce8b4b5a..1bd615a15 100644 --- a/docs/recipes/quarkus/addquarkusproperty.md +++ b/docs/recipes/quarkus/addquarkusproperty.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddQuarkusPropertyExample displayName: Add a Quarkus configuration property example recipeList: - - org.openrewrite.quarkus.AddQuarkusProperty: property: quarkus.http.port + - org.openrewrite.quarkus.AddQuarkusProperty: + property: quarkus.http.port value: 9090 comment: This is a comment profile: dev diff --git a/docs/recipes/quarkus/changequarkuspropertykey.md b/docs/recipes/quarkus/changequarkuspropertykey.md index 13fd8b280..5d833890c 100644 --- a/docs/recipes/quarkus/changequarkuspropertykey.md +++ b/docs/recipes/quarkus/changequarkuspropertykey.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeQuarkusPropertyKeyExample displayName: Change Quarkus configuration property key example recipeList: - - org.openrewrite.quarkus.ChangeQuarkusPropertyKey: oldPropertyKey: quarkus.hibernate-search-orm.automatic-indexing.synchronization.strategy + - org.openrewrite.quarkus.ChangeQuarkusPropertyKey: + oldPropertyKey: quarkus.hibernate-search-orm.automatic-indexing.synchronization.strategy newPropertyKey: quarkus.hibernate-search-orm.indexing.plan.synchronization.strategy profile: dev changeAllProfiles: false diff --git a/docs/recipes/quarkus/changequarkuspropertyvalue.md b/docs/recipes/quarkus/changequarkuspropertyvalue.md index 7be102bfe..c9427a0fd 100644 --- a/docs/recipes/quarkus/changequarkuspropertyvalue.md +++ b/docs/recipes/quarkus/changequarkuspropertyvalue.md @@ -42,7 +42,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeQuarkusPropertyValueExample displayName: Change Quarkus configuration property value example recipeList: - - org.openrewrite.quarkus.ChangeQuarkusPropertyValue: propertyKey: quarkus.hibernate-search-orm.indexing.plan.synchronization.strategy + - org.openrewrite.quarkus.ChangeQuarkusPropertyValue: + propertyKey: quarkus.hibernate-search-orm.indexing.plan.synchronization.strategy newValue: read-sync oldValue: read-sync profile: dev diff --git a/docs/recipes/quarkus/deletequarkusproperty.md b/docs/recipes/quarkus/deletequarkusproperty.md index 57fe9624d..791337ac5 100644 --- a/docs/recipes/quarkus/deletequarkusproperty.md +++ b/docs/recipes/quarkus/deletequarkusproperty.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.DeleteQuarkusPropertyExample displayName: Delete Quarkus configuration property example recipeList: - - org.openrewrite.quarkus.DeleteQuarkusProperty: propertyKey: quarkus.hibernate-search-orm.indexing.plan.synchronization.strategy + - org.openrewrite.quarkus.DeleteQuarkusProperty: + propertyKey: quarkus.hibernate-search-orm.indexing.plan.synchronization.strategy oldValue: read-sync profile: dev deleteFromAllProfiles: false diff --git a/docs/recipes/quarkus/search/findquarkusproperties.md b/docs/recipes/quarkus/search/findquarkusproperties.md index 3c802d4c6..53f174ea3 100644 --- a/docs/recipes/quarkus/search/findquarkusproperties.md +++ b/docs/recipes/quarkus/search/findquarkusproperties.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindQuarkusPropertiesExample displayName: Find Quarkus property example recipeList: - - org.openrewrite.quarkus.search.FindQuarkusProperties: propertyKey: quarkus.http.port + - org.openrewrite.quarkus.search.FindQuarkusProperties: + propertyKey: quarkus.http.port profile: dev searchAllProfiles: false ``` diff --git a/docs/recipes/search/findbuildmetadata.md b/docs/recipes/search/findbuildmetadata.md index 515c405ca..a0b363159 100644 --- a/docs/recipes/search/findbuildmetadata.md +++ b/docs/recipes/search/findbuildmetadata.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindBuildMetadataExample displayName: Find build metadata example recipeList: - - org.openrewrite.search.FindBuildMetadata: key: lstFormatVersion + - org.openrewrite.search.FindBuildMetadata: + key: lstFormatVersion value: 2 ``` diff --git a/docs/recipes/software/amazon/awssdk/v2migration/addcommenttomethod.md b/docs/recipes/software/amazon/awssdk/v2migration/addcommenttomethod.md index 6d433c1dd..3b1b5a252 100644 --- a/docs/recipes/software/amazon/awssdk/v2migration/addcommenttomethod.md +++ b/docs/recipes/software/amazon/awssdk/v2migration/addcommenttomethod.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddCommentToMethodExample displayName: Add a comment to a method example recipeList: - - software.amazon.awssdk.v2migration.AddCommentToMethod: methodPattern: org.mockito.Matchers anyVararg() + - software.amazon.awssdk.v2migration.AddCommentToMethod: + methodPattern: org.mockito.Matchers anyVararg() comment: This method is not supported in AWS SDK for Java v2. ``` diff --git a/docs/recipes/software/amazon/awssdk/v2migration/numbertoduration.md b/docs/recipes/software/amazon/awssdk/v2migration/numbertoduration.md index 8d86c9d1e..57f4517b6 100644 --- a/docs/recipes/software/amazon/awssdk/v2migration/numbertoduration.md +++ b/docs/recipes/software/amazon/awssdk/v2migration/numbertoduration.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.NumberToDurationExample displayName: Convert the method parameter from numeric type to duration example recipeList: - - software.amazon.awssdk.v2migration.NumberToDuration: methodPattern: com.amazonaws.ClientConfiguration setRequestTimeout(int) + - software.amazon.awssdk.v2migration.NumberToDuration: + methodPattern: com.amazonaws.ClientConfiguration setRequestTimeout(int) timeUnit: MILLISECONDS ``` diff --git a/docs/recipes/staticanalysis/declarationsitetypevariance.md b/docs/recipes/staticanalysis/declarationsitetypevariance.md index 4325cdf0f..1be3214f1 100644 --- a/docs/recipes/staticanalysis/declarationsitetypevariance.md +++ b/docs/recipes/staticanalysis/declarationsitetypevariance.md @@ -42,7 +42,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.DeclarationSiteTypeVarianceExample displayName: Properly use declaration-site type variance example recipeList: - - org.openrewrite.staticanalysis.DeclarationSiteTypeVariance: variantTypes: java.util.function.Function + - org.openrewrite.staticanalysis.DeclarationSiteTypeVariance: + variantTypes: java.util.function.Function excludedBounds: java.lang.* ``` diff --git a/docs/recipes/staticanalysis/useasbuilder.md b/docs/recipes/staticanalysis/useasbuilder.md index a39ad6e4d..ef337d9cb 100644 --- a/docs/recipes/staticanalysis/useasbuilder.md +++ b/docs/recipes/staticanalysis/useasbuilder.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UseAsBuilderExample displayName: Chain calls to builder methods example recipeList: - - org.openrewrite.staticanalysis.UseAsBuilder: builderType: org.example.Buildable.Builder + - org.openrewrite.staticanalysis.UseAsBuilder: + builderType: org.example.Buildable.Builder builderCreator: org.example.Buildable builder() ``` diff --git a/docs/recipes/text/appendtotextfile.md b/docs/recipes/text/appendtotextfile.md index 144f3ef97..b9aa6f5c0 100644 --- a/docs/recipes/text/appendtotextfile.md +++ b/docs/recipes/text/appendtotextfile.md @@ -48,7 +48,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AppendToTextFileExample displayName: Append to text file example recipeList: - - org.openrewrite.text.AppendToTextFile: relativeFileName: foo/bar/baz.txt + - org.openrewrite.text.AppendToTextFile: + relativeFileName: foo/bar/baz.txt content: Some text. preamble: # File generated by OpenRewrite # ``` diff --git a/docs/recipes/text/changetext.md b/docs/recipes/text/changetext.md index 4d3689615..7a71c03b8 100644 --- a/docs/recipes/text/changetext.md +++ b/docs/recipes/text/changetext.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeTextExample displayName: Change text example recipeList: - - org.openrewrite.text.ChangeText: toText: Some text. + - org.openrewrite.text.ChangeText: + toText: Some text. ``` Now that `com.yourorg.ChangeTextExample` has been defined, activate it in your build file: diff --git a/docs/recipes/text/createtextfile.md b/docs/recipes/text/createtextfile.md index ba3ee8f35..bdfb25342 100644 --- a/docs/recipes/text/createtextfile.md +++ b/docs/recipes/text/createtextfile.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.CreateTextFileExample displayName: Create text file example recipeList: - - org.openrewrite.text.CreateTextFile: fileContents: Some text. + - org.openrewrite.text.CreateTextFile: + fileContents: Some text. relativeFileName: foo/bar/baz.txt ``` diff --git a/docs/recipes/text/find.md b/docs/recipes/text/find.md index fd758712c..5474473fc 100644 --- a/docs/recipes/text/find.md +++ b/docs/recipes/text/find.md @@ -42,7 +42,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindExample displayName: Find text example recipeList: - - org.openrewrite.text.Find: find: blacklist + - org.openrewrite.text.Find: + find: blacklist filePattern: '**/*.java' ``` diff --git a/docs/recipes/text/findandreplace.md b/docs/recipes/text/findandreplace.md index 4a5873d3a..5ad33e1c0 100644 --- a/docs/recipes/text/findandreplace.md +++ b/docs/recipes/text/findandreplace.md @@ -44,7 +44,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindAndReplaceExample displayName: Find and replace example recipeList: - - org.openrewrite.text.FindAndReplace: find: blacklist + - org.openrewrite.text.FindAndReplace: + find: blacklist replace: denylist filePattern: '**/*.java' ``` diff --git a/docs/recipes/text/findmultiselect.md b/docs/recipes/text/findmultiselect.md index 13005c4b7..d03fbb38b 100644 --- a/docs/recipes/text/findmultiselect.md +++ b/docs/recipes/text/findmultiselect.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindMultiselectExample displayName: Experimental find text with multiselect example recipeList: - - org.openrewrite.text.FindMultiselect: find: blacklist + - org.openrewrite.text.FindMultiselect: + find: blacklist filePattern: '**/*.java' ``` diff --git a/docs/recipes/xml/addcommenttoxmltag.md b/docs/recipes/xml/addcommenttoxmltag.md index 2f9b622f4..97fcb7f11 100644 --- a/docs/recipes/xml/addcommenttoxmltag.md +++ b/docs/recipes/xml/addcommenttoxmltag.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddCommentToXmlTagExample displayName: Add a comment to an XML tag example recipeList: - - org.openrewrite.xml.AddCommentToXmlTag: xPath: /project/dependencies/dependency + - org.openrewrite.xml.AddCommentToXmlTag: + xPath: /project/dependencies/dependency commentText: This is excluded due to CVE and will be removed when we upgrade the next version is available. ``` diff --git a/docs/recipes/xml/addorupdatechildtag.md b/docs/recipes/xml/addorupdatechildtag.md index 49a9db820..ac365b0a0 100644 --- a/docs/recipes/xml/addorupdatechildtag.md +++ b/docs/recipes/xml/addorupdatechildtag.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AddOrUpdateChildTagExample displayName: Add or update child tag example recipeList: - - org.openrewrite.xml.AddOrUpdateChildTag: parentXPath: /project//plugin//configuration + - org.openrewrite.xml.AddOrUpdateChildTag: + parentXPath: /project//plugin//configuration newChildTag: true ``` diff --git a/docs/recipes/xml/changenamespacevalue.md b/docs/recipes/xml/changenamespacevalue.md index 3dcc59f18..1754891a2 100644 --- a/docs/recipes/xml/changenamespacevalue.md +++ b/docs/recipes/xml/changenamespacevalue.md @@ -43,7 +43,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeNamespaceValueExample displayName: Change XML attribute of a specific resource version example recipeList: - - org.openrewrite.xml.ChangeNamespaceValue: elementName: property + - org.openrewrite.xml.ChangeNamespaceValue: + elementName: property oldValue: newfoo.bar.attribute.value.string newValue: newfoo.bar.attribute.value.string versionMatcher: 1.1 diff --git a/docs/recipes/xml/changetagattribute.md b/docs/recipes/xml/changetagattribute.md index 9dd4740fe..2426526e3 100644 --- a/docs/recipes/xml/changetagattribute.md +++ b/docs/recipes/xml/changetagattribute.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeTagAttributeExample displayName: Change XML attribute example recipeList: - - org.openrewrite.xml.ChangeTagAttribute: elementName: property + - org.openrewrite.xml.ChangeTagAttribute: + elementName: property attributeName: name newValue: newfoo.bar.attribute.value.string oldValue: foo.bar.attribute.value.string diff --git a/docs/recipes/xml/changetagname.md b/docs/recipes/xml/changetagname.md index 48bb4323a..3b730b816 100644 --- a/docs/recipes/xml/changetagname.md +++ b/docs/recipes/xml/changetagname.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeTagNameExample displayName: Change XML tag name example recipeList: - - org.openrewrite.xml.ChangeTagName: elementName: /settings/servers/server/username + - org.openrewrite.xml.ChangeTagName: + elementName: /settings/servers/server/username newName: user ``` diff --git a/docs/recipes/xml/changetagvalue.md b/docs/recipes/xml/changetagvalue.md index 2859e764c..cf6857d23 100644 --- a/docs/recipes/xml/changetagvalue.md +++ b/docs/recipes/xml/changetagvalue.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeTagValueExample displayName: Change XML tag value example recipeList: - - org.openrewrite.xml.ChangeTagValue: elementName: /settings/servers/server/username + - org.openrewrite.xml.ChangeTagValue: + elementName: /settings/servers/server/username oldValue: user newValue: user ``` diff --git a/docs/recipes/xml/createxmlfile.md b/docs/recipes/xml/createxmlfile.md index 6d3804491..c9c77ea86 100644 --- a/docs/recipes/xml/createxmlfile.md +++ b/docs/recipes/xml/createxmlfile.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.CreateXmlFileExample displayName: Create XML file example recipeList: - - org.openrewrite.xml.CreateXmlFile: relativeFileName: foo/bar/baz.xml + - org.openrewrite.xml.CreateXmlFile: + relativeFileName: foo/bar/baz.xml fileContents: > diff --git a/docs/recipes/xml/removexmltag.md b/docs/recipes/xml/removexmltag.md index 1fc2cb2f9..1c71f0c9d 100644 --- a/docs/recipes/xml/removexmltag.md +++ b/docs/recipes/xml/removexmltag.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.RemoveXmlTagExample displayName: Remove XML tag example recipeList: - - org.openrewrite.xml.RemoveXmlTag: xPath: /project/dependencies/dependency + - org.openrewrite.xml.RemoveXmlTag: + xPath: /project/dependencies/dependency fileMatcher: '**/application-*.xml' ``` diff --git a/docs/recipes/xml/search/findnamespaceprefix.md b/docs/recipes/xml/search/findnamespaceprefix.md index e9a10d742..5ca802274 100644 --- a/docs/recipes/xml/search/findnamespaceprefix.md +++ b/docs/recipes/xml/search/findnamespaceprefix.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindNamespacePrefixExample displayName: Find XML namespace prefixes example recipeList: - - org.openrewrite.xml.search.FindNamespacePrefix: namespacePrefix: http://www.w3.org/2001/XMLSchema-instance + - org.openrewrite.xml.search.FindNamespacePrefix: + namespacePrefix: http://www.w3.org/2001/XMLSchema-instance xPath: /dependencies/dependency ``` diff --git a/docs/recipes/xml/search/findtags.md b/docs/recipes/xml/search/findtags.md index 6057ee395..20672dec9 100644 --- a/docs/recipes/xml/search/findtags.md +++ b/docs/recipes/xml/search/findtags.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindTagsExample displayName: Find XML tags example recipeList: - - org.openrewrite.xml.search.FindTags: xPath: //dependencies/dependency + - org.openrewrite.xml.search.FindTags: + xPath: //dependencies/dependency ``` Now that `com.yourorg.FindTagsExample` has been defined, activate it in your build file: diff --git a/docs/recipes/xml/search/hasnamespaceuri.md b/docs/recipes/xml/search/hasnamespaceuri.md index 9095f84de..ba30dafd7 100644 --- a/docs/recipes/xml/search/hasnamespaceuri.md +++ b/docs/recipes/xml/search/hasnamespaceuri.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.HasNamespaceUriExample displayName: Find XML namespace URIs example recipeList: - - org.openrewrite.xml.search.HasNamespaceUri: namespaceUri: http://www.w3.org/2001/XMLSchema-instance + - org.openrewrite.xml.search.HasNamespaceUri: + namespaceUri: http://www.w3.org/2001/XMLSchema-instance xPath: /dependencies/dependency ``` diff --git a/docs/recipes/xml/security/updateowaspsuppressiondate.md b/docs/recipes/xml/security/updateowaspsuppressiondate.md index 65856df96..a9acb929a 100644 --- a/docs/recipes/xml/security/updateowaspsuppressiondate.md +++ b/docs/recipes/xml/security/updateowaspsuppressiondate.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.UpdateOwaspSuppressionDateExample displayName: Update OWASP suppression date bounds example recipeList: - - org.openrewrite.xml.security.UpdateOwaspSuppressionDate: cveList: CVE-2022-1234 + - org.openrewrite.xml.security.UpdateOwaspSuppressionDate: + cveList: CVE-2022-1234 untilDate: 2023-01-01 ``` diff --git a/docs/recipes/xml/xslttransformation.md b/docs/recipes/xml/xslttransformation.md index d95b8e365..90099cd83 100644 --- a/docs/recipes/xml/xslttransformation.md +++ b/docs/recipes/xml/xslttransformation.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.XsltTransformationExample displayName: XSLT transformation example recipeList: - - org.openrewrite.xml.XsltTransformation: xslt: ... + - org.openrewrite.xml.XsltTransformation: + xslt: ... xsltResource: /changePlugin.xslt filePattern: '**/*.xml' ``` diff --git a/docs/recipes/yaml/appendtosequence.md b/docs/recipes/yaml/appendtosequence.md index 805b6da5f..961afaeb8 100644 --- a/docs/recipes/yaml/appendtosequence.md +++ b/docs/recipes/yaml/appendtosequence.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.AppendToSequenceExample displayName: Append to sequence example recipeList: - - org.openrewrite.yaml.AppendToSequence: sequencePath: $.universe.planets + - org.openrewrite.yaml.AppendToSequence: + sequencePath: $.universe.planets value: earth existingSequenceValues: existingValue1 matchExistingSequenceValuesInAnyOrder: true diff --git a/docs/recipes/yaml/changekey.md b/docs/recipes/yaml/changekey.md index bccf97464..a52c9e9a4 100644 --- a/docs/recipes/yaml/changekey.md +++ b/docs/recipes/yaml/changekey.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeKeyExample displayName: Change key example recipeList: - - org.openrewrite.yaml.ChangeKey: oldKeyPath: $.subjects.kind + - org.openrewrite.yaml.ChangeKey: + oldKeyPath: $.subjects.kind newKey: kind ``` diff --git a/docs/recipes/yaml/changepropertykey.md b/docs/recipes/yaml/changepropertykey.md index e5b488dbf..dcd11a979 100644 --- a/docs/recipes/yaml/changepropertykey.md +++ b/docs/recipes/yaml/changepropertykey.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangePropertyKeyExample displayName: Change property key example recipeList: - - org.openrewrite.yaml.ChangePropertyKey: oldPropertyKey: management.metrics.binders.*.enabled + - org.openrewrite.yaml.ChangePropertyKey: + oldPropertyKey: management.metrics.binders.*.enabled newPropertyKey: management.metrics.enable.process.files except: List.of("group") filePattern: .github/workflows/*.yml diff --git a/docs/recipes/yaml/changepropertyvalue.md b/docs/recipes/yaml/changepropertyvalue.md index 9b8807359..bbb452e70 100644 --- a/docs/recipes/yaml/changepropertyvalue.md +++ b/docs/recipes/yaml/changepropertyvalue.md @@ -42,7 +42,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangePropertyValueExample displayName: Change YAML property example recipeList: - - org.openrewrite.yaml.ChangePropertyValue: propertyKey: management.metrics.binders.*.enabled + - org.openrewrite.yaml.ChangePropertyValue: + propertyKey: management.metrics.binders.*.enabled newValue: newValue oldValue: oldValue filePattern: .github/workflows/*.yml diff --git a/docs/recipes/yaml/changevalue.md b/docs/recipes/yaml/changevalue.md index cf7bca21b..cd55349b9 100644 --- a/docs/recipes/yaml/changevalue.md +++ b/docs/recipes/yaml/changevalue.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.ChangeValueExample displayName: Change value example recipeList: - - org.openrewrite.yaml.ChangeValue: keyPath: $.subjects.kind + - org.openrewrite.yaml.ChangeValue: + keyPath: $.subjects.kind value: Deployment filePattern: .github/workflows/*.yml ``` diff --git a/docs/recipes/yaml/commentoutproperty.md b/docs/recipes/yaml/commentoutproperty.md index 12addfcb9..21acefd3d 100644 --- a/docs/recipes/yaml/commentoutproperty.md +++ b/docs/recipes/yaml/commentoutproperty.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.CommentOutPropertyExample displayName: Comment out property example recipeList: - - org.openrewrite.yaml.CommentOutProperty: propertyKey: applicability.singleSource + - org.openrewrite.yaml.CommentOutProperty: + propertyKey: applicability.singleSource commentText: The `foo` property is deprecated, please migrate commentOutProperty: true ``` diff --git a/docs/recipes/yaml/copyvalue.md b/docs/recipes/yaml/copyvalue.md index a4837a5e9..e7cccacbb 100644 --- a/docs/recipes/yaml/copyvalue.md +++ b/docs/recipes/yaml/copyvalue.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.CopyValueExample displayName: Copy YAML value example recipeList: - - org.openrewrite.yaml.CopyValue: oldKeyPath: $.source.kind + - org.openrewrite.yaml.CopyValue: + oldKeyPath: $.source.kind oldFilePath: src/main/resources/application.yaml newKey: $.dest.kind newFilePath: src/main/resources/application.yaml diff --git a/docs/recipes/yaml/createyamlfile.md b/docs/recipes/yaml/createyamlfile.md index 2bcb242ee..c45b13440 100644 --- a/docs/recipes/yaml/createyamlfile.md +++ b/docs/recipes/yaml/createyamlfile.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.CreateYamlFileExample displayName: Create YAML file example recipeList: - - org.openrewrite.yaml.CreateYamlFile: relativeFileName: foo/bar/baz.yaml + - org.openrewrite.yaml.CreateYamlFile: + relativeFileName: foo/bar/baz.yaml fileContents: > a: property: value diff --git a/docs/recipes/yaml/deletekey.md b/docs/recipes/yaml/deletekey.md index e451c3186..e1278983c 100644 --- a/docs/recipes/yaml/deletekey.md +++ b/docs/recipes/yaml/deletekey.md @@ -38,7 +38,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.DeleteKeyExample displayName: Delete key example recipeList: - - org.openrewrite.yaml.DeleteKey: keyPath: $.source.kind + - org.openrewrite.yaml.DeleteKey: + keyPath: $.source.kind filePattern: .github/workflows/*.yml ``` diff --git a/docs/recipes/yaml/deleteproperty.md b/docs/recipes/yaml/deleteproperty.md index 3da65af0a..b9dff58b6 100644 --- a/docs/recipes/yaml/deleteproperty.md +++ b/docs/recipes/yaml/deleteproperty.md @@ -40,7 +40,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.DeletePropertyExample displayName: Delete property example recipeList: - - org.openrewrite.yaml.DeleteProperty: propertyKey: management.metrics.binders.files.enabled + - org.openrewrite.yaml.DeleteProperty: + propertyKey: management.metrics.binders.files.enabled filePattern: .github/workflows/*.yml ``` diff --git a/docs/recipes/yaml/mergeyaml.md b/docs/recipes/yaml/mergeyaml.md index f7ed615da..1fce1f7c7 100644 --- a/docs/recipes/yaml/mergeyaml.md +++ b/docs/recipes/yaml/mergeyaml.md @@ -41,7 +41,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.MergeYamlExample displayName: Merge YAML snippet example recipeList: - - org.openrewrite.yaml.MergeYaml: key: $.metadata + - org.openrewrite.yaml.MergeYaml: + key: $.metadata yaml: 'labels: label-one: "value-one"' objectIdentifyingProperty: name diff --git a/docs/recipes/yaml/search/findkey.md b/docs/recipes/yaml/search/findkey.md index f5113fd5e..3c9abea8d 100644 --- a/docs/recipes/yaml/search/findkey.md +++ b/docs/recipes/yaml/search/findkey.md @@ -37,7 +37,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindKeyExample displayName: Find YAML entries example recipeList: - - org.openrewrite.yaml.search.FindKey: key: $.subjects.kind + - org.openrewrite.yaml.search.FindKey: + key: $.subjects.kind ``` Now that `com.yourorg.FindKeyExample` has been defined, activate it in your build file: diff --git a/docs/recipes/yaml/search/findproperty.md b/docs/recipes/yaml/search/findproperty.md index ada7ca2e9..dfc4b18d8 100644 --- a/docs/recipes/yaml/search/findproperty.md +++ b/docs/recipes/yaml/search/findproperty.md @@ -39,7 +39,8 @@ type: specs.openrewrite.org/v1beta/recipe name: com.yourorg.FindPropertyExample displayName: Find YAML properties example recipeList: - - org.openrewrite.yaml.search.FindProperty: propertyKey: management.metrics.binders.*.enabled + - org.openrewrite.yaml.search.FindProperty: + propertyKey: management.metrics.binders.*.enabled propertyValue: false ```