Skip to content

Commit

Permalink
Resolved Indentation and Version Format (#512)
Browse files Browse the repository at this point in the history
* Added Recipe for Migrating Dropwizard Dependencies

* Resolved Feedback Comments

* Added Test for MigrateDropwizard Package Name Changes

* Resolved Indentation and Version Format
  • Loading branch information
bsmahi authored Mar 23, 2024
1 parent b7e0890 commit e216c86
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/rewrite/spring-boot-30.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ recipeList:
oldGroupId: io.dropwizard.metrics
oldArtifactId: metrics-servlet
newArtifactId: metrics-jakarta-servlet
newVersion: 4.2.xx
newVersion: 4.2.x
- org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId:
oldGroupId: io.dropwizard.metrics
oldArtifactId: metrics-servlets
newArtifactId: metrics-jakarta-servlets
newVersion: 4.2.xx
newVersion: 4.2.x
---
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ public void defaults(RecipeSpec spec) {
void migrateDropWizardDependenciesPackageNames() {
java(
"""
import com.codahale.metrics.servlet.InstrumentedFilter;
import com.codahale.metrics.servlets.MetricsServlet;
import com.codahale.metrics.servlet.InstrumentedFilter;
import com.codahale.metrics.servlets.MetricsServlet;
""",
"""
import io.dropwizard.metrics.servlet.InstrumentedFilter;
import io.dropwizard.metrics.servlets.MetricsServlet;
""");
import io.dropwizard.metrics.servlet.InstrumentedFilter;
import io.dropwizard.metrics.servlets.MetricsServlet;
"""
);
}
}

0 comments on commit e216c86

Please sign in to comment.