{"action":"opened","issue":{"url":"https://api.github.com/repos/grails/gorm-hibernate5/issues/137","repository_url":"https://api.github.com/repos/grails/gorm-hibernate5","labels_url":"https://api.github.com/repos/grails/gorm-hibernate5/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/grails/gorm-hibernate5/issues/137/comments","events_url":"https://api.github.com/repos/grails/gorm-hibernate5/issues/137/events","html_url":"https://github.com/grails/gorm-hibernate5/issues/137","id":455485059,"node_id":"MDU6SXNzdWU0NTU0ODUwNTk=","number":137,"title":"schema-export does not work in plugins","user":{"login":"pmcneil","id":29259,"node_id":"MDQ6VXNlcjI5MjU5","avatar_url":"https://avatars0.githubusercontent.com/u/29259?v=4","gravatar_id":"","url":"https://api.github.com/users/pmcneil","html_url":"https://github.com/pmcneil","followers_url":"https://api.github.com/users/pmcneil/followers","following_url":"https://api.github.com/users/pmcneil/following{/other_user}","gists_url":"https://api.github.com/users/pmcneil/gists{/gist_id}","starred_url":"https://api.github.com/users/pmcneil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmcneil/subscriptions","organizations_url":"https://api.github.com/users/pmcneil/orgs","repos_url":"https://api.github.com/users/pmcneil/repos","events_url":"https://api.github.com/users/pmcneil/events{/privacy}","received_events_url":"https://api.github.com/users/pmcneil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-06-13T00:45:23Z","updated_at":"2019-06-13T00:45:23Z","closed_at":null,"author_association":"NONE","body":"**Problem**\r\nIf you create a plugin that defines domain objects using gorm hibernate5:6.1.12 calling `grails run-command schema-export` fails with `Command execution error: org.hibernate.tool.hbm2ddl.SchemaExport: method <init>()V not found`\r\n\r\nIf you create an app and try `grails schema-export`, it works as expected.\r\nIf you use the plugin in an application, `grails schema-export` also works as expected.\r\n\r\n**Test project with readme:** https://github.com/pmcneil/testg3plugin\r\n\r\n**Use case for schema-export in a plugin:** existing grails 2 plugin https://github.com/bio-org-au/nsl-domain-plugin uses schema-export to build an executable schema to set up new shard databases and create upgrade scripts."}}
{"actor":{"display_login":"pmcneil"}}