From 162a48806ed131d9e2229c9ef0798b1fbab9c6c5 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 13 Oct 2017 16:22:50 +0100 Subject: [PATCH] Update custom layout sample so it builds with Java 9 Previously, the custom layout sample did not configure the source and target for the compiler. This meant that both defaulted to 1.5 which is not supported by Java 9's javac. The oldest support version is 1.6. This commit sets the maven.compiler.source and maven.compiler.target properties to 1.8 (the lowest version support by Boot 2.0) allowing the sample to build with both Java 8 and Java 9. See gh-10515 --- .../spring-boot-sample-custom-layout/src/it/custom/pom.xml | 2 ++ .../spring-boot-sample-custom-layout/src/it/default/pom.xml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/spring-boot-samples/spring-boot-sample-custom-layout/src/it/custom/pom.xml b/spring-boot-samples/spring-boot-sample-custom-layout/src/it/custom/pom.xml index c8e41f877d..a4e8aa16d0 100644 --- a/spring-boot-samples/spring-boot-sample-custom-layout/src/it/custom/pom.xml +++ b/spring-boot-samples/spring-boot-sample-custom-layout/src/it/custom/pom.xml @@ -6,6 +6,8 @@ custom 0.0.1.BUILD-SNAPSHOT + 1.8 + 1.8 UTF-8 diff --git a/spring-boot-samples/spring-boot-sample-custom-layout/src/it/default/pom.xml b/spring-boot-samples/spring-boot-sample-custom-layout/src/it/default/pom.xml index 8f5ef946cb..9b891c19d3 100644 --- a/spring-boot-samples/spring-boot-sample-custom-layout/src/it/default/pom.xml +++ b/spring-boot-samples/spring-boot-sample-custom-layout/src/it/default/pom.xml @@ -6,6 +6,8 @@ default 0.0.1.BUILD-SNAPSHOT + 1.8 + 1.8 UTF-8