Fast, Repeatable Refactoring for Developers

Sep 17, 2024 | Programming

OpenRewrite

The OpenRewrite project is an automated refactoring ecosystem for source code, enabling developers to effectively eliminate technical debt within their repositories. It consists of an auto-refactoring engine that runs prepackaged, open source refactoring recipes for common framework migrations, security fixes, and stylistic consistency tasks—reducing your coding effort from hours or days to minutes.

Build tool plugins like OpenRewrite Gradle Plugin and OpenRewrite Maven Plugin help you run these recipes on one repository at a time.

OpenRewrite recipes have bench strength in Java and are part of a growing community of languages, frameworks, and technologies. It’s thousands of great individuals and teams working to make software seamless to update and continuously secure. You can also easily customize recipes for your code.

Getting Started with OpenRewrite

To embark on your journey with OpenRewrite and let it handle the mundane tasks in software development, start with our quickstart guide.

Stay Informed

OpenRewrite is Apache2 licensed and maintained by Moderne. OpenRewrite’s refactoring engine and recipes will always be open source.

Refactoring at Scale with Moderne

Moderne is a commercial platform designed to run the OpenRewrite recipe catalog with incredible efficiency, supporting large codebases and multiple repositories. It’s a place where platform teams and developers can collaborate to drive migrations across their codebases, mass-commit code fixes, and perform large-scale impact analyses.

To see how Moderne and OpenRewrite work differently to transform your code, check out the following video:

Moderne Video

Moderne freely runs an open public service for the benefit of tens of thousands of open-source projects. The platform can streamline your recipe customization and creation, enabling quick assembly and testing. It also includes a multi-repo command line interface (CLI) to enable developers to run and customize recipes locally.

To better understand how Moderne can help your team, contact us.

Contributing to OpenRewrite

We appreciate all types of contributions. For detailed instructions on how to get started, see the contributing guide.

Troubleshooting Tips

If you encounter any issues while using OpenRewrite, consider the following troubleshooting strategies:

  • Ensure that you are using the latest version of the plugins to avoid compatibility issues.
  • Check out community forums on Slack or Discord for similar issues faced by other users.
  • Review the documentation for any missing steps or configurations.
  • If you’re still stuck, feel free to reach out to us for help.
  • For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.

At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

Stay Informed with the Newest F(x) Insights and Blogs

Tech News and Blog Highlights, Straight to Your Inbox