Skip to content

Commit

Permalink
Update to use Spring Boot 3.1 (vmware-tanzu#286)
Browse files Browse the repository at this point in the history
* Update to use Spring Boot 3.1

* Update spring-cloud BOM version
  • Loading branch information
trisberg authored May 25, 2023
1 parent 6dc032e commit 12e3587
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions spring-cloud-serverless/kubernetes/tap/DEPLOYING.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ tanzu apps workload create hello-fun -f config/workload.yaml \

### Deploying to Kubernetes as a TAP workload using GraalVM native compile

If you would like to build the serverless app using the GraalVM native compile feature, then all you need to do is set the build env `BP_NATIVE_IMAGE` to true in the `workload.yaml` before applying it.
If you would like to build the serverless app using the GraalVM native compile feature, then all you need to do is set the build envs `BP_NATIVE_IMAGE` to true and `BP_MAVEN_BUILD_ARGUMENTS` to use the native profile in the `workload.yaml` before applying it.

This can also be accomplished using the Tanzu CLI with the following command:

```
tanzu apps workload create hello-fun -f config/workload.yaml \
--build-env "BP_NATIVE_IMAGE=true"
--build-env "BP_NATIVE_IMAGE=true" \
--build-env "BP_MAVEN_BUILD_ARGUMENTS=-Pnative -Dmaven.test.skip=true --no-transfer-progress package"
```

### Accessing the app deployed to your cluster
Expand Down
4 changes: 2 additions & 2 deletions spring-cloud-serverless/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.5</version>
<version>3.1.0</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
Expand All @@ -16,7 +16,7 @@

<properties>
<java.version>17</java.version>
<spring-cloud.version>2022.0.2</spring-cloud.version>
<spring-cloud.version>2022.0.3</spring-cloud.version>
</properties>

<dependencies>
Expand Down

0 comments on commit 12e3587

Please sign in to comment.