diff --git a/spring-boot-integration-tests/spring-boot-gradle-tests/src/test/java/org/springframework/boot/gradle/WarPackagingTests.java b/spring-boot-integration-tests/spring-boot-gradle-tests/src/test/java/org/springframework/boot/gradle/WarPackagingTests.java index 78d30e2b9e5..4a3383c59f0 100644 --- a/spring-boot-integration-tests/spring-boot-gradle-tests/src/test/java/org/springframework/boot/gradle/WarPackagingTests.java +++ b/spring-boot-integration-tests/spring-boot-gradle-tests/src/test/java/org/springframework/boot/gradle/WarPackagingTests.java @@ -94,6 +94,13 @@ public class WarPackagingTests { checkWebInfLibProvidedEntries(war, expectedLibProvidedEntries); checkWebInfLibEntries(war, expectedLibProvidedEntries); + + try { + war.close(); + } + catch (IOException ex) { + // Ignore + } } private void checkWebInfLibProvidedEntries(JarFile war, Set expectedEntries)