20
20
import org.gradle.api.tasks.Exec
21
21
22
22
val checkRustEnvironment by tasks.registering(Exec ::class ) {
23
- description = " Check if Rust environment."
24
- group = " verification"
25
23
commandLine(" bash" , " -c" , " cargo --version" )
26
24
standardOutput = System .out
27
25
errorOutput = System .err
@@ -30,23 +28,19 @@ val checkRustEnvironment by tasks.registering(Exec::class) {
30
28
31
29
val buildRustProject by tasks.registering(Exec ::class ) {
32
30
dependsOn(checkRustEnvironment)
33
- description = " Compile the Rust project"
34
31
workingDir = file(" $projectDir " )
35
32
commandLine(" bash" , " -c" , " make build" )
36
33
}
37
34
38
35
val checkRustProject by tasks.registering(Exec ::class ) {
39
36
dependsOn(checkRustEnvironment)
40
- description = " Check the Rust project"
41
37
workingDir = file(" $projectDir " )
42
38
43
39
commandLine(" bash" , " -c" , " make check" )
44
40
}
45
41
46
42
val testRustProject by tasks.registering(Exec ::class ) {
47
43
dependsOn(checkRustEnvironment)
48
- description = " Run tests in the Rust project"
49
- group = " verification"
50
44
workingDir = file(" $projectDir " )
51
45
commandLine(" bash" , " -c" , " make test" )
52
46
@@ -56,8 +50,6 @@ val testRustProject by tasks.registering(Exec::class) {
56
50
57
51
val cleanRustProject by tasks.registering(Exec ::class ) {
58
52
dependsOn(checkRustEnvironment)
59
- description = " Run tests in the Rust project"
60
- group = " verification"
61
53
workingDir = file(" $projectDir " )
62
54
commandLine(" bash" , " -c" , " make clean" )
63
55
0 commit comments