Grails 3 schema-export in build.gradle

╄→гoц情女王★ 提交于 2019-12-24 19:22:28

问题


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?


回答1:


You don't need to create a Gradle task. A task already exists.

http://docs.grails.org/latest/ref/Command%20Line/schema-export.html



来源:https://stackoverflow.com/questions/44557319/grails-3-schema-export-in-build-gradle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!