瀏覽代碼

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
Marcus Da Coregio 3 年之前
父節點
當前提交
4d65d96b8a
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      config/spring-security-config.gradle

+ 6 - 2
config/spring-security-config.gradle

@@ -156,6 +156,10 @@ task saml2Tests(type: Test) {
 	dependsOn compileSaml2TestJava
 	dependsOn compileSaml2TestJava
 }
 }
 
 
-tasks.named('test') {
-	finalizedBy 'saml2Tests'
+test {
+	shouldRunAfter saml2Tests
+}
+
+tasks.named('check') {
+	dependsOn saml2Tests
 }
 }