alexbarbato / openrewrite-spring-boot-upgrade-example

Home Page:https://www.youtube.com/watch?v=XI_7mpEiPjI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Forks Stargazers Issues

OpenRewrite Spring Boot Upgrade Example

The cheat code

./mvnw -U org.openrewrite.maven:rewrite-maven-plugin:run \
 -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-spring:LATEST \
 -DactiveRecipes=org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_2

Prerequisites

  • SDKMan

    i.e. curl -s "https://get.sdkman.io" | bash

  • Httpie needs to be in the path

    i.e. brew install httpie

  • bc, pv, zip, unzip, gcc, zlib1g-dev

    i.e. sudo apt install bc, pv, zip, unzip, gcc, zlib1g-dev -y

  • Vendir

    i.e. brew tap carvel-dev/carvel && brew install vendir

Quick Start

./demo.sh

Attributions

Related Videos

Running the Demo in a Docker container

Build the image

docker build -t openrewritedemo .

Running the container

This run command uses Docker volumes to cache the Maven local repository & the SDKMAN Java versions between runs.

docker run -it --rm \
  --name openrewrite-demo \
  -v "$(pwd):/data" \
  -v openrewrite-root-m2:/root/.m2 \
  -v openrewrite-root-sdkman-candidates:/root/.sdkman/candidates \
  -w /data \
  openrewritedemo ./demo.sh

About

https://www.youtube.com/watch?v=XI_7mpEiPjI

License:MIT License


Languages

Language:Shell 88.6%Language:Dockerfile 11.4%