Exclude META-INF/build-info.properties from restart

Prior to this commit any application configured to write
`META-INF/build-info.properties` could trigger unexpected application
restarts. The problem is particularly prevalent when using Eclipse M2E in
combination with Maven's `spring-boot-maven-plugin` `build-info` goal
and Gradle's `springBoot` `buildInfo()`.

Closes gh-7002
This commit is contained in:
Craig Andrews
2016-09-22 17:58:10 -04:00
committed by Stephane Nicoll
parent 85fb273596
commit d94eedfd8a
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ public class DevToolsPropertiesTests {
assertThat(restart.getAllExclude()).containsOnly("META-INF/maven/**",
"META-INF/resources/**", "resources/**", "static/**", "public/**",
"templates/**", "**/*Test.class", "**/*Tests.class", "git.properties",
"foo/**", "bar/**");
"META-INF/build-info.properties", "foo/**", "bar/**");
}
@Test