mirror of
https://github.com/ysoftdevs/gradle-training.git
synced 2026-11-13 12:33:36 +01:00
16 - how to stop build execution
This commit is contained in:
1 parent
fe7b073aa8
commit
0e30e1333d
2 files changed
+23
No files matched your search
@@ -0,0 +1,15 @@
|
||||
|
||||
task workingTask {
|
||||
description 'Task that works'
|
||||
doLast {
|
||||
println 'Everything is ok'
|
||||
}
|
||||
}
|
||||
|
||||
task failingTask {
|
||||
description 'Task that fails'
|
||||
doLast {
|
||||
throw new GradleException("Problem detected. Build failed")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user