Gradle
finalizedBy
Adds one or more tasks to run after a task completes. The finalizer tasks are not guaranteed to run in the order listed.
task A {
finalizedBy "B"
finalizedBy "C"
doLast {
println "A"
}
}
Running gradle A produces:
Task :A
A
Task :C
C
Task :B
B
Eclipse
Gradle's executable does not support .bat files when run from Eclipse,
although it works from the console:
// Does not work in Eclipse, but works in the console
exec {
executable 'ganache-test.bat'
}
// Works everywhere
exec {
commandLine 'cmd', '/c', 'ganache-test.bat'
}
Eclipse Debug ▸ JUnit will not run Gradle, and Gradle tests behave differently.