Skip to content

Commit

Permalink
Added Recipe for Migrating Dropwizard Dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmahi committed Mar 20, 2024
1 parent 71f7cc8 commit c30dfd8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/main/resources/META-INF/rewrite/spring-boot-30.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ recipeList:
- org.openrewrite.java.spring.boot3.SpringBootProperties_3_0
- org.openrewrite.java.spring.boot3.MigrateThymeleafDependencies
- org.openrewrite.java.spring.boot3.UpgradeSpringDoc_2
- org.openrewrite.java.spring.boot3.MigrateDropWizardDependencies
- org.openrewrite.java.spring.security6.UpgradeSpringSecurity_6_0
- org.openrewrite.java.spring.cloud2022.UpgradeSpringCloud_2022
- org.openrewrite.hibernate.MigrateToHibernate61
Expand Down Expand Up @@ -200,3 +201,28 @@ recipeList:
methodPattern: org.springdoc.core.models.GroupedOpenApi.Builder addOpenApiCustomiser(..)
newMethodName: addOpenApiCustomizer
matchOverrides: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.boot3.MigrateDropWizardDependencies
displayName: Migrate dropWizard dependencies to Spring Boot 3.x
description: Migrate dropWizard dependencies to the new artifactId, since these are changed with Spring Boot 3.
tags:
- spring
- boot
- dropwizard
recipeList:
- org.openrewrite.java.ChangePackage:
oldPackageName: com.codahale.metrics.servlet
newPackageName: com.codahale.metrics.servlets
- org.openrewrite.java.ChangePackage:
oldPackageName: io.dropwizard.metrics.servlet
newPackageName: io.dropwizard.metrics.servlets
- org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId:
oldGroupId: io.dropwizard.metrics
oldArtifactId: metrics-servlet
newArtifactId: metrics-servlets
- org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId:
oldGroupId: io.dropwizard.metrics
oldArtifactId: metrics-jakarta-servlet
newArtifactId: metrics-jakarta-servlets
---

0 comments on commit c30dfd8

Please sign in to comment.