An open API service indexing awesome lists of open source software.

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

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