7

openrewrite/rewrite: 转换升级Java或Spring代码的自动化工具

 1 year ago
source link: https://www.jdon.com/61261
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

openrewrite/rewrite: 转换升级Java或Spring代码的自动化工具
OpenRewrite 项目是 Java 和其他源代码的语义代码搜索和转换生态系统。它由一个用于通用框架迁移和风格一致性任务的预打包重构配方平台组成。它还允许您定义自定义配方以实现广泛的源代码转换。

OpenRewrite 项目是 Java 和其他源代码的大规模重构生态系统,旨在消除整个工程组织的技术债务。该项目提供可扩展的自动化代码维护、最佳实践、漏洞修补、API 迁移、依赖管理等。

使用这个工具将一个旧 Spring Boot 1.2 项目迁移到 Spring Boot 2/Jdk 17,它自动更新了 Maven、Spring Boot、JUnit 和其他依赖项,更新了源代码和测试以与 JDK 17 兼容——具有很高的准确性和质量。在总共 178 次测试中,有 9 次失败能够快速手动修复。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK