From 4d65d96b8af6c85b30578cb0d73e2664e08136b5 Mon Sep 17 00:00:00 2001 From: Marcus Da Coregio Date: Fri, 3 Jun 2022 11:22:46 -0300 Subject: [PATCH] Fix saml2Tests always running after a single test This commit makes the check task depend on the saml2Tests task. The test task was also configured to run after saml2Tests, to make sure that the compileTestJava runs after the compileSaml2TestJava Issue gh-10816 --- config/spring-security-config.gradle | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config/spring-security-config.gradle b/config/spring-security-config.gradle index ffb1186721..5c634a1abb 100644 --- a/config/spring-security-config.gradle +++ b/config/spring-security-config.gradle @@ -156,6 +156,10 @@ task saml2Tests(type: Test) { dependsOn compileSaml2TestJava } -tasks.named('test') { - finalizedBy 'saml2Tests' +test { + shouldRunAfter saml2Tests +} + +tasks.named('check') { + dependsOn saml2Tests }