Skip to content

Commit

Permalink
new versions
Browse files Browse the repository at this point in the history
  • Loading branch information
gtiwari333 committed Feb 18, 2024
1 parent 61418ca commit f76bd17
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 32 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,19 +151,27 @@ Future: do more stuff
`./mvnw versions:display-dependency-updates`
`./mvnw versions:display-plugin-updates`

## Create docker image using buildpack

./mvnw spring-boot:build-image

docker run --rm -p 8080:8080 docker.io/library/note-app:3.2.1


## Generate native executable:
- Required: GraalVM 22.3+ (for Spring Boot 3)
- Install using sdkman
`sdk install java 22.3.r17.ea-nik`
`sdk use java 22.3.r17.ea-nik`
- https://docs.spring.io/spring-boot/docs/current/reference/html/native-image.html#native-image.developing-your-first-application.native-build-tools.prerequisites
`sdk install java 22.3.r17-nik`
`sdk use java 22.3.r17-nik`

- Create native executable `./mvnw native:compile -Pnative,dev`
- Run it `./target/note-app`

OR

- Generate docker image with native executable `./mvnw spring-boot:build-image -Pnative,dev`
- Run it `docker run --rm -p 8080:8080 docker.io/library/note-app:3.0.0-RC1`
- Run it `docker run --rm -p 8080:8080 docker.io/library/note-app:3.2.1`


## Native Test:
Expand Down
33 changes: 4 additions & 29 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.1</version>
<version>3.2.2</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

Expand All @@ -17,9 +17,9 @@
<java.version>21</java.version>

<springdoc-openapi-ui.version>2.3.0</springdoc-openapi-ui.version>
<mapstruct.version>1.5.5.Final</mapstruct.version>
<mapstruct.version>1.6.0.Beta1</mapstruct.version>

<selenide.version>7.0.3</selenide.version>
<selenide.version>7.1.0</selenide.version>

<wro4j.version>1.9.0</wro4j.version>
<spock.version>2.4-M1-groovy-4.0</spock.version>
Expand All @@ -34,7 +34,7 @@
<sonar-maven-plugin.version>3.10.0.2594</sonar-maven-plugin.version>
<jacoco-maven-plugin.version>0.8.10</jacoco-maven-plugin.version>
<maven.checkstyle.plugin.version>3.3.0</maven.checkstyle.plugin.version>
<puppycrawl.checkstyle.version>10.12.5</puppycrawl.checkstyle.version>
<puppycrawl.checkstyle.version>10.13.0</puppycrawl.checkstyle.version>
<puppycrawl.checkstyle.config.file>src/main/resources/checkstyle.xml</puppycrawl.checkstyle.config.file>


Expand Down Expand Up @@ -561,31 +561,6 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>5.2.1</version>
<configuration>
<activeRecipes>
<recipe>org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_1</recipe>
<recipe>org.openrewrite.java.migrate.UpgradeToJava17</recipe>
</activeRecipes>
</configuration>
<dependencies>
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-spring</artifactId>
<version>5.0.1</version>
</dependency>
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-migrate-java</artifactId>
<version>2.0.1</version>
</dependency>
</dependencies>
</plugin>

</plugins>
</build>

Expand Down

0 comments on commit f76bd17

Please sign in to comment.