-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathexecution-order.gradle
More file actions
46 lines (40 loc) · 1.54 KB
/
execution-order.gradle
File metadata and controls
46 lines (40 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* Contains declarations of tasks' execution orders.
*/
/**
* Sub-tasks execution order
*/
//Compile sub-tasks execution order
compileTestJava.mustRunAfter compileJava
compileIntegrationTestJava.mustRunAfter compileTestJava
//PMD sub-tasks execution order
pmdTest.mustRunAfter pmdMain
pmdIntegrationTest.mustRunAfter pmdTest
//spotbugs sub-tasks execution order
spotbugsTest.mustRunAfter spotbugsMain
spotbugsIntegrationTest.mustRunAfter spotbugsTest
//Jacoco sub-tasks execution order
jacocoTestReport.mustRunAfter jacocoTestCoverageVerification
/**
* Global execution order
*/
// Ensure spotlessApply runs after Compile
spotlessCheck.mustRunAfter compileIntegrationTestJava
// Ensure PMD runs after spotlessApply
pmdMain.mustRunAfter spotlessCheck
// Ensure spotbugs runs after PMD
spotbugsMain.mustRunAfter pmdIntegrationTest
// Ensure unit tests are run after spotbugs
test.mustRunAfter spotbugsIntegrationTest
// Ensure integration tests are run after unit tests and are part of check
check.dependsOn integrationTest
integrationTest.mustRunAfter test
// Ensure jacocoTestCoverageVerification and jacocoTestReport are part of check
check.dependsOn jacocoTestCoverageVerification
check.dependsOn jacocoTestReport
// Ensure jacocoTestCoverageVerification and jacocoTestReport run after integrationTest
jacocoTestCoverageVerification.mustRunAfter integrationTest
jacocoTestReport.mustRunAfter integrationTest
compileJava.dependsOn versionTxt
// Ensure benchmark results are only committed runs after the benchmarks are run
benchmarkCommit.mustRunAfter benchmark