From 1765f4e9cf462d28d5f0a20fac5cf44d344a7eef Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 9 Aug 2023 13:43:24 +0100 Subject: [PATCH] Ensure that server tests run when test apps have changed Closes gh-19858 --- .../spring-boot-server-tests/build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/build.gradle b/spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/build.gradle index c64175833b..96efade2f3 100644 --- a/spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/build.gradle +++ b/spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/build.gradle @@ -58,5 +58,16 @@ task buildApps(type: GradleBuild) { } intTest { + inputs.files( + "${buildDir}/spring-boot-server-tests-app/build/libs/spring-boot-server-tests-app-jetty.jar", + "${buildDir}/spring-boot-server-tests-app/build/libs/spring-boot-server-tests-app-jetty.war", + "${buildDir}/spring-boot-server-tests-app/build/libs/spring-boot-server-tests-app-resources.jar", + "${buildDir}/spring-boot-server-tests-app/build/libs/spring-boot-server-tests-app-tomcat.jar", + "${buildDir}/spring-boot-server-tests-app/build/libs/spring-boot-server-tests-app-tomcat.war", + "${buildDir}/spring-boot-server-tests-app/build/libs/spring-boot-server-tests-app-undertow.jar", + "${buildDir}/spring-boot-server-tests-app/build/libs/spring-boot-server-tests-app-undertow.war") + .withPropertyName("applicationArchives") + .withPathSensitivity(PathSensitivity.RELATIVE) + .withNormalizer(ClasspathNormalizer) dependsOn buildApps } \ No newline at end of file