Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Recipe for Migrating Dropwizard Dependencies #510

Merged
merged 3 commits into from
Mar 22, 2024

Conversation

bsmahi
Copy link
Contributor

@bsmahi bsmahi commented Mar 20, 2024

What's changed?

Added Recipe for migrating dropwizard dependencies to spring boot 3.x

What's your motivation?

I would love explore and contribute more on open-source and for openrewrite framework

Anyone you would like to review specifically?

@timtebeek Could you please review it. Thanks.

Checklist

@sambsnyd sambsnyd merged commit 06556d2 into openrewrite:main Mar 22, 2024
2 checks passed
@sambsnyd
Copy link
Member

Thanks @bsmahi !

Comment on lines +41 to +44
import com.codahale.metrics.servlet.InstrumentedFilter;
import com.codahale.metrics.servlets.MetricsServlet;
""",
"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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;

oldGroupId: io.dropwizard.metrics
oldArtifactId: metrics-servlet
newArtifactId: metrics-jakarta-servlet
newVersion: 4.2.xx
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think I've seen xx in a version selector before. I think it would probably better as just x unless I am missing something here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@knutwannheden in the maven central, dropwizard version being specified in the format of 4.2.23 hence have given format as 4.2.xx.

Please suggest.

I am happy to change, please create issue and assigned to me, I will work on it.

Thanks,
Mahi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
recipe Recipe requested
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

UpgradeSpringBoot_3_0 Dropwizard metric-servlet(s) dependencies need to be renamed
4 participants