From the course: Migrating beyond Java 8

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Configuring build tools

Configuring build tools - Java Tutorial

From the course: Migrating beyond Java 8

Start my 1-month free trial

Configuring build tools

- [Instructor] In this lesson, we'll begin updating our project's configuration to compile and package our application using multiple versions of Java. Being able to compile using multiple versions during the migration period is very helpful because it allows us to continue to maintain the existing application as well as migrate to the new version of Java. Now our application is being built with Maven. So that means we're going to be performing this work within the pom.xml file. Inside of this file, you'll notice a java.version property which has been set to eight. This is a spring boot property that works behind the scenes with Maven in order to build our project using the specified Java version. So in this case, it's going to compile the application using Java 8. Now, in order to be able to compile in both our current and target version, we're going to use a feature of Maven called a profile. So within our pom.xml…

Contents