From c9c1e8b5173d3dd69475f7a1711606ffaf7f88a8 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Mon, 30 Mar 2015 10:39:41 +0100 Subject: [PATCH] Add animal sniffer for Java 6 and jdk1.8 to actuator The build now requires java 8 (although no language features are yet in use). Bamboo has been updated. Fixes gh-716 --- spring-boot-actuator/pom.xml | 9 +++++++ .../boot/cli/CommandLineIT.java | 2 +- spring-boot-dependencies/pom.xml | 27 +++++++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/spring-boot-actuator/pom.xml b/spring-boot-actuator/pom.xml index 508e125c14f..674b2408ed5 100644 --- a/spring-boot-actuator/pom.xml +++ b/spring-boot-actuator/pom.xml @@ -16,6 +16,7 @@ http://www.spring.io + 1.8 ${basedir}/.. @@ -200,4 +201,12 @@ test + + + + org.codehaus.mojo + animal-sniffer-maven-plugin + + + diff --git a/spring-boot-cli/src/it/java/org/springframework/boot/cli/CommandLineIT.java b/spring-boot-cli/src/it/java/org/springframework/boot/cli/CommandLineIT.java index 8f0b4fd0c39..dbf825c758a 100644 --- a/spring-boot-cli/src/it/java/org/springframework/boot/cli/CommandLineIT.java +++ b/spring-boot-cli/src/it/java/org/springframework/boot/cli/CommandLineIT.java @@ -42,7 +42,7 @@ public class CommandLineIT { InterruptedException { Invocation cli = this.cli.invoke("hint"); assertThat(cli.await(), equalTo(0)); - assertThat(cli.getErrorOutput().length(), equalTo(0)); + assertThat("Unexpected error: \n" + cli.getErrorOutput(), cli.getErrorOutput().length(), equalTo(0)); assertThat(cli.getStandardOutputLines().size(), equalTo(10)); } diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index 012f0b54d42..081e204f8b3 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -1671,6 +1671,33 @@ maven-war-plugin 2.5 + + org.codehaus.mojo + animal-sniffer-maven-plugin + 1.14 + + + org.codehaus.mojo.signature + java16 + 1.0 + + + + + enforce-java-6 + test + + check + + + + org.springframework.lang.UsesJava8 + org.springframework.lang.UsesJava7 + + + + + org.codehaus.mojo build-helper-maven-plugin