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!
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.
- JDK version: 11
- JDK language & bytecode level: 1.8
- Gradle version: Defined in wrapper
- Kotlin version: 1.4
- Kotlin language level: 1.4
- Kotlin JVM bytecode level: 1.8
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: 2020.3.2
You must set the -parameters
compiler flag to run Rewrite tests. Add this to the "additional command line parameters" field in IntelliJ -> Preferences -> Build, Execution, Deployment -> Compiler -> Java Compiler.