Skip to content

Spring Boot Migrator (SBM) is a tool for automated code migrations to upgrade or migrate to Spring Boot

License

Notifications You must be signed in to change notification settings

Pedritod/spring-boot-migrator

 
 

Spring Boot Migrator (SBM)

Spring Boot Migrator (SBM) aims to help developers upgrading or migrating to Spring Boot by providing recipes for automated migrations.

How SBM works

A given codebase is scanned and a set of recipes gets evaluated against the codebase.
The list of applicable recipes is displayed and recipes can be selected from the list to be run against the codebase.
The recipes either apply automated migrations or guide users on their migration journey.

Scan application

scan

Apply a recipe

apply

Getting started

  • Download the latest release from here: Spring Boot Migrator Releases

  • Start the application: java -jar spring-boot-migrator.jar

  • In the CLI start by scanning the application scan <path-to-application>

  • From the list of applicable recipes select the one you want to apply,
    e.g.: apply initialize-spring-boot-migration
    Spring Boot Migrator will now apply the migrations defined in the recipe to the codebase.

  • To get help when using SBM use the help command

Warning
The OpenRewrite rewrite-java-11 module uses JDK internals and thus requires the project to run with JDK 11.

Building from source

  • Clone the repository

  • Change into root dir

  • Run mvn clean install

  • Find the jar in applications/spring-shell/spring-boot-migrator.jar

Warning
Some integration tests use Docker so you’ll need Docker to run them.
You can pass the -DskipTests flag to the mvn command to ignore tests.

Documentation

Contributing

If you have not previously done so, please sign the Contributor License Agreement. You will be reminded automatically when you submit the pull request.

All contributions are welcome.

Please refer to the CONTRIBUTING.adoc for more details.

This project requires Java 11.

About

Spring Boot Migrator (SBM) is a tool for automated code migrations to upgrade or migrate to Spring Boot

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 98.2%
  • HTML 1.2%
  • Less 0.3%
  • FreeMarker 0.2%
  • RAML 0.1%
  • CSS 0.0%