In Grails 2 I had a nifty gradle task that would generate DDL for me:
task extractGrailsDDL(type: org.grails.gradle.plugin.tasks.GrailsTask) {
command "schema-export"
args ddlFileName("Temp") + " --datasouce=operator"
}
But that doesn't work in Grails 3, I get that, a lot has changed.
The question is: How can I create a Gradle Task to run a schema export and pass file name and datasource parameters to it?