This project is a demonstration of how we could use Netflix Rewrite to auto-remediate API deprecations for users of Project Reactor. Rewrite makes it possible to automatically fix code in a style-preserving way.
To test-drive:
-
Run
./gradlew pTML
from the project root. This will publish a snapshot jar containing the@AutoRewrite
rules to your maven local repository. -
cd example
. -
Run
./gradlew lintSource
. This will present the user with a report indicating that there are changes that need to be made:
- Run
./gradlew fixSourceLint
. This will present a similar report aslintSource
, but also make the changes to the underlying source files.
- Run
git diff
to examine the changes that were made.