In the previous articles here I used IBM Cloud Code Engine do deploy a Quarkus REST web service, but on Java 11.
Now it’s the time to use Java 17.
First, let’s update pom.xml
to Java 17:
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
Then create a new file in the root of the project with the name .buildenv
and set the content:
BP_JVM_VERSION=17
There are more variables to be set in the documentation.
Then, commit, push the change to GIT, and rebuild the image and deploy it to IBM Cloud.
Documentation and links
- The Paketo Buildpack for BellSoft Liberica cofiguration - https://github.com/paketo-buildpacks/bellsoft-liberica#configuration