https://github.com/dashaun/openrewrite-spring-boot-upgrade-example
https://github.com/dashaun/openrewrite-spring-boot-upgrade-example
openrewrite springboot
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dashaun/openrewrite-spring-boot-upgrade-example
- Owner: dashaun
- License: mit
- Created: 2023-02-24T00:21:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-08T22:11:33.000Z (about 1 year ago)
- Last Synced: 2025-04-10T15:02:18.670Z (about 1 year ago)
- Topics: openrewrite, springboot
- Language: Shell
- Homepage: https://www.youtube.com/watch?v=XI_7mpEiPjI
- Size: 48.8 KB
- Stars: 12
- Watchers: 1
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
# OpenRewrite Spring Boot Upgrade Example
## The cheat code
```bash
./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_3
```
## Prerequisites
- [SDKMan](https://sdkman.io/install)
> i.e. `curl -s "https://get.sdkman.io" | bash`
- [Httpie](https://httpie.io/) 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](https://carvel.dev/vendir/)
> i.e. `brew tap carvel-dev/carvel && brew install vendir`
## Quick Start
```bash
./demo.sh
```
## Attributions
- [Demo Magic](https://github.com/paxtonhare/demo-magic) is pulled via `vendir sync`
## Related Videos
- https://www.youtube.com/live/qQAXXwkaveM?si=4KunXZaretBrPZs3
- https://www.youtube.com/live/ck4AP7kRQkc?si=lDl203vbfZysrX5e
- https://www.youtube.com/live/VWPrYcyjG8Q?si=z7Q2Rm_XOlBwCiei
## Running the Demo in a Docker container
### Build the image
```bash
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.
```bash
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
```
[forks-shield]: https://img.shields.io/github/forks/dashaun/openrewrite-spring-boot-upgrade-example.svg?style=for-the-badge
[forks-url]: https://github.com/dashaun/openrewrite-spring-boot-upgrade-example/forks
[stars-shield]: https://img.shields.io/github/stars/dashaun/openrewrite-spring-boot-upgrade-example.svg?style=for-the-badge
[stars-url]: https://github.com/dashaun/openrewrite-spring-boot-upgrade-example/stargazers
[issues-shield]: https://img.shields.io/github/issues/dashaun/openrewrite-spring-boot-upgrade-example.svg?style=for-the-badge
[issues-url]: https://github.com/dashaun/openrewrite-spring-boot-upgrade-example/issues