CORE-12019 Add a "stopAndCleanCorda" gradle task that will Stop Corda5 if running and do some cleanup

This commit is contained in:
Emil Gabrovski 2023-03-27 10:49:23 +03:00 committed by egabrovski-r3
parent d12f25b300
commit 48a19a73e1

View File

@ -148,6 +148,18 @@ tasks.register("stopCorda") {
}
}
tasks.register("stopAndCleanCorda") {
group = cordaGroup
dependsOn('clean')
doLast {
try {
cordaLifeCycle.stopCorda()
} catch (Exception ignored) {
}
delete devEnvWorkspace
}
}
tasks.register("getPostgresJDBC") {
group = supportingGroup
doLast {