Automated Code Refactoring and Modernization with OpenRewrite
Build reusable recipes for scalable migrations, technical debt reduction, and code transformation

PDF · English
Price and availability
PDF eBookUS store
$40.99
Sign in to buyYou’ll review your order and final price before payment.
Download from your library after delivery. Protected eBooks need a compatible reading app.
For personal use under the eBook licence.
Territorial availability
Available in: Andorra, Austria, Australia, Belgium, Bulgaria, Canada, Switzerland, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Guernsey, Greece, Croatia, Hungary, Ireland, Isle of Man, Iceland, Italy, Jersey, Japan, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Malta, Netherlands, Norway, Poland, Portugal, Romania, Sweden, Slovenia, Slovakia, San Marino, United States, Vatican City, South Africa
Publisher rights cover these stores: US, UK, Canada, EU, Australia. Checkout availability is shown above.
- Format
- DRM
- Not stated by the publisher
- Language
- English
- Publisher
- Packt Publishing
- Published
- 30 September 2026
- ISBN
- 9781808347825
- Subjects
About this book
Automate repetitive code refactoring and migrations with reusable recipes that make large-scale code changes faster, safer, and more consistent.Key FeaturesAutomate repetitive refactoring and migrations across codebasesCreate declarative, Refaster template, and imperative recipesApply custom transformations through your existing build pipelinePurchase of the print or Kindle book includes a free PDF eBookBook DescriptionAutomate repetitive refactoring and make large-scale code changes consistent and scalable with OpenRewrite. This book shows you how to use existing recipes and create your own transformations, helping you modernize codebases while significantly reducing the time and errors associated with manual changes. You ll begin with lossless semantic trees (LSTs), recipes, visitors, and styles to understand how OpenRewrite represents and transforms source code. You ll then learn to find, configure, compose, and run recipes, add recipe sources, and integrate transformations with your build pipeline. Next, you ll create declarative recipes and Refaster templates before progressing to imperative recipes. You ll work with visitors, cursors, shared data, non-isomorphic transformations, configuration options, testing, validation, and multiple visitors. All examples are visualized using Java as a programming language. Written by freelance software engineer Ansgar Schulte, who brings many years of project experience and has taught more than 15,000 students, this book connects OpenRewrite concepts with techniques you can apply to real projects. By the end, you ll be able to automate recurring refactoring tasks and build reusable recipes for your own codebases.What you will learnUnderstand recipes, visitors, styles, and LSTsFind, configure, compose, and run OpenRewrite recipesAdd and use new recipe sources in your projectsCreate declarative and Refaster template recipesBuild imperative recipes with visitors and cursorsTest, validate, and configure custom recipesUnderstand isomorphic and non-isomorphic visitorsImplement complex transformations with multiple visitorsIntegrate automated refactoring into build pipelinesWho this book is forSoftware developers and solution architects who spend significant time on manual refactoring, migrations, or technical debt reduction will benefit from this book. You should understand Java syntax and have access to a Java development environment with a JDK, IDE, and build tool. No previous OpenRewrite knowledge or refactoring experience is required.]]>
Bibliographic data © Gardners Books Ltd.