The vFunction service specification file (common.json) specified two recipes:
Migrate to Spring Boot 3.2
Migrate to Java 17
As a result. the pom.xml file under the common folder has the openrewrite plugin with these recipes listed as active recipes.
To apply the recipes, do the following in VSCode:
Right click on common under MAVEN and select Run Maven Commands…->Custom…
Type rewrite:run
in the prompt and press Enter
You will see the command in the Terminal and the output. The output will print the list of modified files as warnings.
Switch to the source control (git) in VSCode - there are 11 modified files:
a. The modified java files use jakarta.persistence instead of javax.persistence
b. The modified pom.xml file now uses the jakarta persistence-api dependency as well as newer versions, it also remove the dependency on junit and changed the build configuration to
Click on the explorer (in VSCode) and recompile the common library by right clicking Common under MAVEN and running the commands clean and then install. The build should be successful.
Commit the modified files.