Sunday, March 15, 2015

Example of how to use both JDK 7 and JDK 8 in one build.

Example of how to use both JDK 7 and JDK 8 in one build.:





   <properties>

      <maven.compiler.target>1.7</maven.compiler.target>

      <maven.compiler.source>1.7</maven.compiler.source>

      <maven.compiler.testTarget>1.8</maven.compiler.testTarget>

      <maven.compiler.testSource>1.8</maven.compiler.testSource>

   </properties>