Skip to content

Commit c81a835

Browse files
committed
Merge pull request spring-projects#7002 from candrews:patch-3
* pr/7002: Exclude `META-INF/build-info.properties` from restart
2 parents 85fb273 + d94eedf commit c81a835

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/DevToolsProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static class Restart {
6060

6161
private static final String DEFAULT_RESTART_EXCLUDES = "META-INF/maven/**,"
6262
+ "META-INF/resources/**,resources/**,static/**,public/**,templates/**,"
63-
+ "**/*Test.class,**/*Tests.class,git.properties";
63+
+ "**/*Test.class,**/*Tests.class,git.properties,META-INF/build-info.properties";
6464

6565
private static final long DEFAULT_RESTART_POLL_INTERVAL = 1000;
6666

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/DevToolsPropertiesTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void additionalExcludeKeepsDefaults() {
3636
assertThat(restart.getAllExclude()).containsOnly("META-INF/maven/**",
3737
"META-INF/resources/**", "resources/**", "static/**", "public/**",
3838
"templates/**", "**/*Test.class", "**/*Tests.class", "git.properties",
39-
"foo/**", "bar/**");
39+
"META-INF/build-info.properties", "foo/**", "bar/**");
4040
}
4141

4242
@Test

0 commit comments

Comments
 (0)