|
| 1 | +/** |
| 2 | + * Contains declarations of tasks' execution orders. |
| 3 | + */ |
| 4 | + |
| 5 | +/** |
| 6 | + * Sub-tasks execution order |
| 7 | + */ |
| 8 | +//Compile sub-tasks execution order |
| 9 | +compileTestJava.mustRunAfter compileJava |
| 10 | +compileIntegrationTestJava.mustRunAfter compileTestJava |
| 11 | + |
| 12 | +//Checkstyle sub-tasks execution order |
| 13 | +checkstyleTest.mustRunAfter checkstyleMain |
| 14 | +checkstyleIntegrationTest.mustRunAfter checkstyleTest |
| 15 | + |
| 16 | +//PMD sub-tasks execution order |
| 17 | +pmdTest.mustRunAfter pmdMain |
| 18 | +pmdIntegrationTest.mustRunAfter pmdTest |
| 19 | + |
| 20 | +//FindBugs sub-tasks execution order |
| 21 | +findbugsTest.mustRunAfter findbugsMain |
| 22 | +findbugsIntegrationTest.mustRunAfter findbugsTest |
| 23 | + |
| 24 | +//Jacoco sub-tasks execution order |
| 25 | +jacocoTestReport.mustRunAfter jacocoTestCoverageVerification |
| 26 | + |
| 27 | +/** |
| 28 | + * Global execution order |
| 29 | + */ |
| 30 | + |
| 31 | +// Ensure CheckStyle runs after Compile |
| 32 | +checkstyleMain.mustRunAfter compileIntegrationTestJava |
| 33 | +// Ensure PMD runs after Checkstyle |
| 34 | +pmdMain.mustRunAfter checkstyleIntegrationTest |
| 35 | +// Ensure FindBugs runs after PMD |
| 36 | +findbugsMain.mustRunAfter pmdIntegrationTest |
| 37 | +// Ensure unit tests are run after FindBugs |
| 38 | +test.mustRunAfter findbugsIntegrationTest |
| 39 | +// Ensure integration tests are run after unit tests and are part of check |
| 40 | +check.dependsOn integrationTest |
| 41 | +integrationTest.mustRunAfter test |
| 42 | +// Ensure jacocoTestCoverageVerification and jacocoTestReport are part of check |
| 43 | +check.dependsOn jacocoTestCoverageVerification |
| 44 | +check.dependsOn jacocoTestReport |
| 45 | +// Ensure jacocoTestCoverageVerification and jacocoTestReport run after integrationTest |
| 46 | +jacocoTestCoverageVerification.mustRunAfter integrationTest |
| 47 | +jacocoTestReport.mustRunAfter integrationTest |
0 commit comments