Comment on page
Remove unused YAML
org.openrewrite.yaml.cleanup.RemoveUnused
Remove YAML mappings and sequence keys that have no value.
- groupId: org.openrewrite
- artifactId: rewrite-yaml
- version: 8.9.5
This recipe has no required configuration parameters and comes from a rewrite core library. It can be activated directly without adding any dependencies.
Gradle
Gradle init script
Maven POM
Maven Command Line
Moderne CLI
- 1.Add the following to your
build.gradle
file:
build.gradle
plugins {
id("org.openrewrite.rewrite") version("6.5.6")
}
rewrite {
activeRecipe("org.openrewrite.yaml.cleanup.RemoveUnused")
}
repositories {
mavenCentral()
}