How to specify Java version in Spring pom.xml

Since version 9, Java has new features every 6 months and it’s very hard to keep track of these new changes. If you’re thinking about migrating to a specific Java version is recommended to make a complete diff of APIs between selected Java versions.