From cff1eea4c4b7e14968048cb8c6e6e29cd4950679 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 5 Oct 2015 14:35:00 +0100 Subject: [PATCH] Make new configuration inner class static See gh-4079 --- .../boot/autoconfigure/flyway/FlywayAutoConfiguration.java | 2 +- spring-boot-samples/spring-boot-sample-web-freemarker/pom.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration.java index e1b63d4869..4251fd50d3 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration.java @@ -129,7 +129,7 @@ public class FlywayAutoConfiguration { @Configuration @ConditionalOnClass(LocalContainerEntityManagerFactoryBean.class) @ConditionalOnBean(AbstractEntityManagerFactoryBean.class) - protected class FlywayInitializerJpaDependencyConfiguration extends + protected static class FlywayInitializerJpaDependencyConfiguration extends EntityManagerFactoryDependsOnPostProcessor { public FlywayInitializerJpaDependencyConfiguration() { diff --git a/spring-boot-samples/spring-boot-sample-web-freemarker/pom.xml b/spring-boot-samples/spring-boot-sample-web-freemarker/pom.xml index da2e16b2cf..0c191f0b50 100644 --- a/spring-boot-samples/spring-boot-sample-web-freemarker/pom.xml +++ b/spring-boot-samples/spring-boot-sample-web-freemarker/pom.xml @@ -35,6 +35,9 @@ org.springframework.boot spring-boot-maven-plugin + + true + org.apache.maven.plugins