honnix / rewrite

Semantic code search and transformation

Home Page:https://docs.openrewrite.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logo

Semantic code search and transformation

ci Apache 2.0 Maven Central

The Rewrite project is a mass refactoring ecosystem for Java and other source code, designed to eliminate technical debt across an engineering organization. It consists of a platform of prepackaged refactoring recipes for common framework migration and stylistic consistency tasks in Java, ready for you to apply in your build via Maven or Gradle plugins.

Read the full documentation at docs.openrewrite.org.

Feel free to join us on Slack!

Building & Developing OpenRewrite

We use Gradle to build this project. The gradle wrapper checked into this project defines the gradle version to use.
When building from the command line invoke the wrapper with ./gradlew build on unix-style terminals and gradlew build on windows-style terminals.

CLI Environment Configuration:

  • JDK version: 11
    • JDK language & bytecode level: 1.8
  • Gradle version: Defined in wrapper
  • Kotlin version: 1.5
    • Kotlin language level: 1.5
    • Kotlin JVM bytecode level: 1.8

IDE Configuration

We use IntelliJ IDEA to develop this project. Other IDEs or versions of this IDE can be made to work. These are one set of versions we know works:

  • IDEA version: 2021.1.3

You must set the -parameters compiler flag to run Rewrite tests. If your system does not have UTF-8 as its default character encoding (e.g., Windows) you must also add -encoding utf8. Add these to the "additional command line parameters" field in IntelliJ -> Preferences -> Build, Execution, Deployment -> Compiler -> Java Compiler.

About

Semantic code search and transformation

https://docs.openrewrite.org

License:Apache License 2.0


Languages

Language:Java 66.8%Language:Kotlin 32.6%Language:ANTLR 0.7%Language:Shell 0.0%