GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - openrewrite/rewrite: Automated mass refactoring of source code.

BranchesTags
Open more actions menu

Latest commit

 

History

13,041 Commits
13,041 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude
.claude
 
 
.github/workflows
.github/workflows
 
 
.idea/modules
.idea/modules
 
 
.moderne/context
.moderne/context
 
 
.run
.run
 
 
buildSrc
buildSrc
 
 
doc
doc
 
 
gradle
gradle
 
 
rewrite-android
rewrite-android
 
 
rewrite-benchmarks
rewrite-benchmarks
 
 
rewrite-bom
rewrite-bom
 
 
rewrite-coldfusion
rewrite-coldfusion
 
 
rewrite-core
rewrite-core
 
 
rewrite-csharp
rewrite-csharp
 
 
rewrite-docker
rewrite-docker
 
 
rewrite-go
rewrite-go
 
 
rewrite-gradle-tooling-model
rewrite-gradle-tooling-model
 
 
rewrite-gradle
rewrite-gradle
 
 
rewrite-groovy
rewrite-groovy
 
 
rewrite-hcl
rewrite-hcl
 
 
rewrite-java-11
rewrite-java-11
 
 
rewrite-java-17
rewrite-java-17
 
 
rewrite-java-21
rewrite-java-21
 
 
rewrite-java-25
rewrite-java-25
 
 
rewrite-java-8
rewrite-java-8
 
 
rewrite-java-lombok
rewrite-java-lombok
 
 
rewrite-java-tck
rewrite-java-tck
 
 
rewrite-java-test
rewrite-java-test
 
 
rewrite-java
rewrite-java
 
 
rewrite-javascript
rewrite-javascript
 
 
rewrite-json
rewrite-json
 
 
rewrite-kotlin
rewrite-kotlin
 
 
rewrite-maven
rewrite-maven
 
 
rewrite-properties
rewrite-properties
 
 
rewrite-protobuf
rewrite-protobuf
 
 
rewrite-python
rewrite-python
 
 
rewrite-ruby
rewrite-ruby
 
 
rewrite-scala
rewrite-scala
 
 
rewrite-test
rewrite-test
 
 
rewrite-toml
rewrite-toml
 
 
rewrite-xml
rewrite-xml
 
 
rewrite-yaml
rewrite-yaml
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CLAUDE.md
CLAUDE.md
 
 
IDE.properties.tmp
IDE.properties.tmp
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle.kts
build.gradle.kts
 
 
favicon.png
favicon.png
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
lombok.config
lombok.config
 
 
rewrite.yml
rewrite.yml
 
 
settings.gradle.kts
settings.gradle.kts
 
 
suppressions.xml
suppressions.xml
 
 

Repository files navigation

OpenRewrite Logo

ci Apache 2.0 Revved up by Develocity Contributing Guide

Fast, repeatable refactoring for developers

The OpenRewrite project (managed by Moderne) is an open-source 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.

OpenRewrite provides parsers and base recipes for multiple languages, including Java, Kotlin, Groovy, JavaScript/TypeScript, Python, and C#. For Java, the OpenRewrite Gradle Plugin and OpenRewrite Maven Plugin let you run one recipe at a time against a single repository. Recipes are easy to customize, so you can adapt any of them - or even write your own.

Start with our quickstart guide and let OpenRewrite handle the boring parts of software development for you.

Get and stay informed:

  • Read the documentation.
  • Join us on Slack or Discord! We're happy to answer your questions directly.
  • Check out Code Remix Weekly where we deep dive topics and answer questions.
  • Subscribe to our YouTube channel for great videos on OpenRewrite recipes.
  • Follow us on X and LinkedIn.

OpenRewrite is maintained by Moderne and is offered under a tiered licensing model. See Licensing for how the framework, parsers, and recipes are licensed.

Building on OpenRewrite with Moderne

OpenRewrite is built to migrate, secure, and refactor code one repository at a time. Moderne is the commercial platform built on that foundation, running the same recipes across hundreds or thousands of repositories at once. Migrations are a common starting point with OpenRewrite, and the platform expands on this to include large-scale impact analysis, security remediation, and the tools coding agents use to understand and change code across a whole organization. Moderne also extends OpenRewrite from Java to additional languages and from individual developers to teams and coding agents. The parsers and base recipes for those additional languages are provided under the Moderne Source Available License, which lets you run them against your own code at no cost. Moderne also offers proprietary recipes in these ecosystems (for large-scale analysis, security remediation, and AI tool-calling) that require a Moderne commercial license.

A lot of this comes down to how the Lossless Semantic Tree (LST) is handled. The LST is OpenRewrite's type-aware model of your source code, built in memory each time a recipe runs. Moderne batch-builds LSTs once and serializes them, so they can be reused across repos and across teams without rebuilding. That same LST gives coding agents pre-computed context, type-aware search, and direct access to OpenRewrite recipes as deterministic tool calls through tools like Prethink, Trigrep, and a local MCP server. Agents work with less token overhead and more accuracy than they would reading a codebase file by file.

See how Moderne and OpenRewrite work in different ways to transform your code:

Moderne

Moderne also includes a multi-repo command line interface (CLI) for building LSTs, running recipes locally, and developing custom recipes across many repositories.

Moderne

Moderne runs a free public service for the benefit of tens of thousands of open source projects. To learn more about how Moderne can help your team, contact us.

Contributing

We appreciate all types of contributions. See the contributing guide for detailed instructions on how to get started.

About

Automated mass refactoring of source code.

docs.openrewrite.org

Topics

abstract-syntax-treeastcode-searchjavarefactoringrefactoring-tools

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity
Custom properties

Stars

4.0k stars

Watchers

25 watching

Forks

607 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.