From 7956ab58a518f2d28ec7d26eee2f8059daf0af85 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Fri, 10 Oct 2014 11:01:30 -0700 Subject: [PATCH] Add maven.compiler.source and target properties Add `maven.compiler.source` and `maven.compiler.target` properties to the spring-boot-starter-parent to allow easier customization of the maven compiler. Both properties default to `${java.version}`. Fixes gh-1684 --- spring-boot-starters/spring-boot-starter-parent/pom.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spring-boot-starters/spring-boot-starter-parent/pom.xml b/spring-boot-starters/spring-boot-starter-parent/pom.xml index caf8e095dc6..7ebc12f7ac4 100644 --- a/spring-boot-starters/spring-boot-starter-parent/pom.xml +++ b/spring-boot-starters/spring-boot-starter-parent/pom.xml @@ -20,6 +20,8 @@ 1.6 UTF-8 UTF-8 + ${java.version} + ${java.version} @@ -62,8 +64,8 @@ org.apache.maven.plugins maven-compiler-plugin - ${java.version} - ${java.version} + ${maven.compiler.source} + ${maven.compiler.target}