Skip to content

Commit

Permalink
Add missing newline for recipes with options
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Dec 23, 2024
1 parent 5d8170b commit ca198c4
Show file tree
Hide file tree
Showing 255 changed files with 510 additions and 255 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/analysis/search/findflowbetweenmethods.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/analysis/search/findmethods.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/apache/httpclient5/addtimeunitargument.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/core/deletesourcefiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/core/excludefilefromgitignore.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/core/isinrepository.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/core/renamefile.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/core/setfilepermissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/featureflags/ff4j/removecheck.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/featureflags/removebooleanflag.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/featureflags/removestringflag.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/featureflags/search/findfeatureflag.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/featureflags/unleash/removeisenabled.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gitlab/addcomponent.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gitlab/addstages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gitlab/addtemplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gitlab/changetemplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gitlab/removetemplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gitlab/search/findcomponent.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gitlab/search/findtemplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gradle/adddependency.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gradle/addproperty.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gradle/changedependency.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gradle/changedependencyartifactid.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gradle/changedependencyclassifier.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gradle/changedependencyconfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gradle/changedependencyextension.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gradle/changedependencygroupid.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gradle/changeextraproperty.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gradle/plugins/addbuildplugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
```
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gradle/plugins/addsettingsplugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
```
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gradle/plugins/addsettingspluginrepository.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gradle/plugins/changeplugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gradle/plugins/changepluginversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
```
Expand Down
3 changes: 2 additions & 1 deletion docs/recipes/gradle/plugins/removebuildplugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading

0 comments on commit ca198c4

Please sign in to comment.