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 c135e2741e3..b98b5d95c73 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 @@ -99,6 +99,13 @@ public class WarPackagingTests { checkWebInfLibProvidedEntries(war, expectedLibProvidedEntries); checkWebInfLibEntries(war, expectedLibProvidedEntries); + + try { + war.close(); + } + catch (IOException ex) { + // Ignore + } } private void checkWebInfLibProvidedEntries(JarFile war, Set expectedEntries)