Skip to content

Commit b7dba4e

Browse files
committed
Fix recipe.csv validation issues
1 parent b98c8fe commit b7dba4e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/resources/META-INF/rewrite/dropwizard-to-spring-boot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ recipeList:
229229
# Tasks, Commands
230230
type: specs.openrewrite.org/v1beta/recipe
231231
name: org.openrewrite.java.dropwizard.MigrateTasksAndCommands
232-
displayName: Clean up various issues with the code.
233-
description: Clean up the code.
232+
displayName: Migrate `PostBodyTask` and `ConfiguredCommand`
233+
description: Remove or change the superclasses of `PostBodyTask` and `ConfiguredCommand`.
234234
recipeList:
235235
- org.openrewrite.java.dropwizard.method.ChangeSuperclass:
236236
targetClass: io.dropwizard.cli.ConfiguredCommand
@@ -244,8 +244,8 @@ recipeList:
244244
# Cleanup
245245
type: specs.openrewrite.org/v1beta/recipe
246246
name: org.openrewrite.java.dropwizard.CodeCleanup
247-
displayName: Clean up various issues with the code.
248-
description: Clean up the code.
247+
displayName: Clean up various issues with the code
248+
description: Shorten references, remove unused imports, and remove Dropwizard-specific code constructs.
249249
recipeList:
250250
- org.openrewrite.java.ShortenFullyQualifiedTypeReferences
251251
- org.openrewrite.java.RemoveUnusedImports

src/main/resources/META-INF/rewrite/recipes.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ maven,org.openrewrite.recipe:rewrite-dropwizard,org.openrewrite.java.dropwizard.
1313
maven,org.openrewrite.recipe:rewrite-dropwizard,org.openrewrite.java.dropwizard.MigrateHibernate,Migrate Hibernate,Converts Dropwizard Resources to Spring Boot format.,25,,,Dropwizard,Java,,,Recipes for upgrading and patching [Dropwizard](https://dropwizard.io/) applications.,Basic building blocks for transforming Java code.,,"[{""name"":""org.openrewrite.maven.table.MavenMetadataFailures"",""displayName"":""Maven metadata failures"",""description"":""Attempts to resolve maven metadata that failed."",""columns"":[{""name"":""group"",""type"":""String"",""displayName"":""Group id"",""description"":""The groupId of the artifact for which the metadata download failed.""},{""name"":""artifactId"",""type"":""String"",""displayName"":""Artifact id"",""description"":""The artifactId of the artifact for which the metadata download failed.""},{""name"":""version"",""type"":""String"",""displayName"":""Version"",""description"":""The version of the artifact for which the metadata download failed.""},{""name"":""mavenRepositoryUri"",""type"":""String"",""displayName"":""Maven repository"",""description"":""The URL of the Maven repository that the metadata download failed on.""},{""name"":""snapshots"",""type"":""String"",""displayName"":""Snapshots"",""description"":""Does the repository support snapshots.""},{""name"":""releases"",""type"":""String"",""displayName"":""Releases"",""description"":""Does the repository support releases.""},{""name"":""failure"",""type"":""String"",""displayName"":""Failure"",""description"":""The reason the metadata download failed.""}]}]"
1414
maven,org.openrewrite.recipe:rewrite-dropwizard,org.openrewrite.java.dropwizard.MigrateTests,Migrate Health Checks to Spring Boot,Converts Dropwizard tests to Spring Boot format.,271,,,Dropwizard,Java,,,Recipes for upgrading and patching [Dropwizard](https://dropwizard.io/) applications.,Basic building blocks for transforming Java code.,,"[{""name"":""org.openrewrite.maven.table.MavenMetadataFailures"",""displayName"":""Maven metadata failures"",""description"":""Attempts to resolve maven metadata that failed."",""columns"":[{""name"":""group"",""type"":""String"",""displayName"":""Group id"",""description"":""The groupId of the artifact for which the metadata download failed.""},{""name"":""artifactId"",""type"":""String"",""displayName"":""Artifact id"",""description"":""The artifactId of the artifact for which the metadata download failed.""},{""name"":""version"",""type"":""String"",""displayName"":""Version"",""description"":""The version of the artifact for which the metadata download failed.""},{""name"":""mavenRepositoryUri"",""type"":""String"",""displayName"":""Maven repository"",""description"":""The URL of the Maven repository that the metadata download failed on.""},{""name"":""snapshots"",""type"":""String"",""displayName"":""Snapshots"",""description"":""Does the repository support snapshots.""},{""name"":""releases"",""type"":""String"",""displayName"":""Releases"",""description"":""Does the repository support releases.""},{""name"":""failure"",""type"":""String"",""displayName"":""Failure"",""description"":""The reason the metadata download failed.""}]}]"
1515
maven,org.openrewrite.recipe:rewrite-dropwizard,org.openrewrite.java.dropwizard.MigrateSecurity,Migrate Health Checks to Spring Boot,Converts Dropwizard health checks to Spring Boot format.,9,,,Dropwizard,Java,,,Recipes for upgrading and patching [Dropwizard](https://dropwizard.io/) applications.,Basic building blocks for transforming Java code.,,"[{""name"":""org.openrewrite.maven.table.MavenMetadataFailures"",""displayName"":""Maven metadata failures"",""description"":""Attempts to resolve maven metadata that failed."",""columns"":[{""name"":""group"",""type"":""String"",""displayName"":""Group id"",""description"":""The groupId of the artifact for which the metadata download failed.""},{""name"":""artifactId"",""type"":""String"",""displayName"":""Artifact id"",""description"":""The artifactId of the artifact for which the metadata download failed.""},{""name"":""version"",""type"":""String"",""displayName"":""Version"",""description"":""The version of the artifact for which the metadata download failed.""},{""name"":""mavenRepositoryUri"",""type"":""String"",""displayName"":""Maven repository"",""description"":""The URL of the Maven repository that the metadata download failed on.""},{""name"":""snapshots"",""type"":""String"",""displayName"":""Snapshots"",""description"":""Does the repository support snapshots.""},{""name"":""releases"",""type"":""String"",""displayName"":""Releases"",""description"":""Does the repository support releases.""},{""name"":""failure"",""type"":""String"",""displayName"":""Failure"",""description"":""The reason the metadata download failed.""}]}]"
16-
maven,org.openrewrite.recipe:rewrite-dropwizard,org.openrewrite.java.dropwizard.MigrateTasksAndCommands,Clean up various issues with the code.,Clean up the code.,3,,,Dropwizard,Java,,,Recipes for upgrading and patching [Dropwizard](https://dropwizard.io/) applications.,Basic building blocks for transforming Java code.,,
17-
maven,org.openrewrite.recipe:rewrite-dropwizard,org.openrewrite.java.dropwizard.CodeCleanup,Clean up various issues with the code.,Clean up the code.,17,,,Dropwizard,Java,,,Recipes for upgrading and patching [Dropwizard](https://dropwizard.io/) applications.,Basic building blocks for transforming Java code.,,
16+
maven,org.openrewrite.recipe:rewrite-dropwizard,org.openrewrite.java.dropwizard.MigrateTasksAndCommands,Migrate `PostBodyTask` and `ConfiguredCommand`,Remove or change the superclasses of `PostBodyTask` and `ConfiguredCommand`.,3,,,Dropwizard,Java,,,Recipes for upgrading and patching [Dropwizard](https://dropwizard.io/) applications.,Basic building blocks for transforming Java code.,,
17+
maven,org.openrewrite.recipe:rewrite-dropwizard,org.openrewrite.java.dropwizard.CodeCleanup,Clean up various issues with the code,"Shorten references, remove unused imports, and remove Dropwizard-specific code constructs.",17,,,Dropwizard,Java,,,Recipes for upgrading and patching [Dropwizard](https://dropwizard.io/) applications.,Basic building blocks for transforming Java code.,,
1818
maven,org.openrewrite.recipe:rewrite-dropwizard,org.openrewrite.java.dropwizard.annotation.AddClassAnnotationIfAnnotationExists,Add annotation if target annotations exist,Adds annotation if class has any of the specified target annotations.,1,,Annotation,Dropwizard,Java,,,Recipes for upgrading and patching [Dropwizard](https://dropwizard.io/) applications.,Basic building blocks for transforming Java code.,"[{""name"":""annotationToAdd"",""type"":""String"",""displayName"":""Annotation to add"",""description"":""The annotation that should be added."",""example"":""org.springframework.stereotype.Component"",""required"":true},{""name"":""targetAnnotationClassName"",""type"":""String"",""displayName"":""Target annotation class name"",""description"":""The annotation that should looked for."",""example"":""javax.ws.rs.Path"",""required"":true},{""name"":""annotateInnerClasses"",""type"":""Boolean"",""displayName"":""Annotate inner classes"",""description"":""Boolean whether to annotate inner classes of the matched annotation""}]",
1919
maven,org.openrewrite.recipe:rewrite-dropwizard,org.openrewrite.java.dropwizard.annotation.AddClassAnnotationIfSuperTypeExists,Add annotation if target supertypes exist,Adds annotation if class extends or implements any of the specified target types.,1,,Annotation,Dropwizard,Java,,,Recipes for upgrading and patching [Dropwizard](https://dropwizard.io/) applications.,Basic building blocks for transforming Java code.,"[{""name"":""annotationToAdd"",""type"":""String"",""displayName"":""Annotation to add"",""description"":""The annotation that should be added."",""example"":""org.springframework.stereotype.Component"",""required"":true},{""name"":""targetSupertypeName"",""type"":""String"",""displayName"":""Target supertype name"",""description"":""The supertype that should looked for."",""example"":""javax.ws.rs.Path"",""required"":true},{""name"":""annotateInnerClasses"",""type"":""Boolean"",""displayName"":""Annotate inner classes"",""description"":""Boolean whether to annotate inner classes of the matched annotation""}]",
2020
maven,org.openrewrite.recipe:rewrite-dropwizard,org.openrewrite.java.dropwizard.annotation.micrometer.CodahaleTimedToMicrometerTimed,Replace `@Timed` (Dropwizard) with `@Timed` (Micrometer),"Replaces Dropwizard's `@Timed` annotation with Micrometer's `@Timed` annotation, preserving name (mapped to value), absolute, and description attributes.",9,Micrometer,Annotation,Dropwizard,Java,,,Recipes for upgrading and patching [Dropwizard](https://dropwizard.io/) applications.,Basic building blocks for transforming Java code.,,

0 commit comments

Comments
 (0)