jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.32k stars 4.01k forks source link

Automated refactoring/migration with OpenRewrite #15068

Open jkschneider opened 3 years ago

jkschneider commented 3 years ago
Overview of the feature request

OpenRewrite is a style-preserving, type-aware automated source code refactoring library and set of build plugins. It allows you to define recipes that perform migrations, adopt code best practices, and repair security defects.

An initial home for JHipster-related recipes while we think about where it might live more permanently: https://github.com/openrewrite/rewrite-jhipster

Motivation for

A fundamental concern of any project generation tool is how to deal with upgrades after the initial generation, especially when users are expected to customize the generated code. To some extent, OpenRewrite will permit upgrades in previously generated code.

These updates don't have to encompass the full range of upgrades in order to generate value. For example, code that was generated with a security defect could be repaired independently of the rest of the upgrade path.

Related issues or PR

Suggest that we form a backlog of desired transformations here: https://github.com/openrewrite/rewrite-jhipster/issues. We can get started writing the first several recipes. I expect that the best practices and Spring Boot 1->2 migration recipes in rewrite-spring are already applicable. Best practices and JUnit 4->5 migration in rewrite-testing-frameworks is also probably applicable.

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Our core developers tend to be more verbose on denying. If there is no negative comment, possibly this feature will be accepted. We are accepting PRs :smiley:. Comment or this will be closed in 7 days

pascalgrimaud commented 3 years ago

Keep it

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Our core developers tend to be more verbose on denying. If there is no negative comment, possibly this feature will be accepted. We are accepting PRs :smiley:. Comment or this will be closed in 7 days

github-actions[bot] commented 5 months ago

This issue is stale because it has been open for too long without any activity. Due to the moving nature of jhipster generated application, bugs can become invalid. If this issue still applies please comment otherwise it will be closed in 7 days

timtebeek commented 5 months ago

For now we had archived openrewrite/rewrite-jhipster, but we're certainly open to revive that if you all want to get involved there.