{"action":"created","issue":{"url":"https://api.github.com/repos/grails/grails-core/issues/9012","labels_url":"https://api.github.com/repos/grails/grails-core/issues/9012/labels{/name}","comments_url":"https://api.github.com/repos/grails/grails-core/issues/9012/comments","events_url":"https://api.github.com/repos/grails/grails-core/issues/9012/events","html_url":"https://github.com/grails/grails-core/issues/9012","id":87732451,"number":9012,"title":"run-script command is missing in Grails 3.0","user":{"login":"damluar","id":3090206,"avatar_url":"https://avatars.githubusercontent.com/u/3090206?v=3","gravatar_id":"","url":"https://api.github.com/users/damluar","html_url":"https://github.com/damluar","followers_url":"https://api.github.com/users/damluar/followers","following_url":"https://api.github.com/users/damluar/following{/other_user}","gists_url":"https://api.github.com/users/damluar/gists{/gist_id}","starred_url":"https://api.github.com/users/damluar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damluar/subscriptions","organizations_url":"https://api.github.com/users/damluar/orgs","repos_url":"https://api.github.com/users/damluar/repos","events_url":"https://api.github.com/users/damluar/events{/privacy}","received_events_url":"https://api.github.com/users/damluar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/grails/grails-core/labels/New%20Feature","name":"New Feature","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/grails/grails-core/milestones/24","html_url":"https://github.com/grails/grails-core/milestones/grails-3.1","labels_url":"https://api.github.com/repos/grails/grails-core/milestones/24/labels","id":1135811,"number":24,"title":"grails-3.1","description":"","creator":{"login":"graemerocher","id":66626,"avatar_url":"https://avatars.githubusercontent.com/u/66626?v=3","gravatar_id":"","url":"https://api.github.com/users/graemerocher","html_url":"https://github.com/graemerocher","followers_url":"https://api.github.com/users/graemerocher/followers","following_url":"https://api.github.com/users/graemerocher/following{/other_user}","gists_url":"https://api.github.com/users/graemerocher/gists{/gist_id}","starred_url":"https://api.github.com/users/graemerocher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemerocher/subscriptions","organizations_url":"https://api.github.com/users/graemerocher/orgs","repos_url":"https://api.github.com/users/graemerocher/repos","events_url":"https://api.github.com/users/graemerocher/events{/privacy}","received_events_url":"https://api.github.com/users/graemerocher/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":4,"state":"open","created_at":"2015-05-27T11:37:53Z","updated_at":"2015-06-12T13:47:10Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-06-12T13:39:39Z","updated_at":"2015-06-12T13:56:03Z","closed_at":null,"body":"Hello, we used `run-script` command to run our scripts in grails context. After upgrading to 3.0, the command is missing now. Why was it removed and what are the alternatives?"},"comment":{"url":"https://api.github.com/repos/grails/grails-core/issues/comments/111500853","html_url":"https://github.com/grails/grails-core/issues/9012#issuecomment-111500853","issue_url":"https://api.github.com/repos/grails/grails-core/issues/9012","id":111500853,"user":{"login":"graemerocher","id":66626,"avatar_url":"https://avatars.githubusercontent.com/u/66626?v=3","gravatar_id":"","url":"https://api.github.com/users/graemerocher","html_url":"https://github.com/graemerocher","followers_url":"https://api.github.com/users/graemerocher/followers","following_url":"https://api.github.com/users/graemerocher/following{/other_user}","gists_url":"https://api.github.com/users/graemerocher/gists{/gist_id}","starred_url":"https://api.github.com/users/graemerocher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemerocher/subscriptions","organizations_url":"https://api.github.com/users/graemerocher/orgs","repos_url":"https://api.github.com/users/graemerocher/repos","events_url":"https://api.github.com/users/graemerocher/events{/privacy}","received_events_url":"https://api.github.com/users/graemerocher/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T13:56:03Z","updated_at":"2015-06-12T13:56:03Z","body":"Yes you can write an `ApplicationContextCommand` see for example, the `schema-export` command:\r\n\r\nhttps://github.com/grails/grails-data-mapping/blob/master/grails-plugins/hibernate/src/main/groovy/grails/plugin/hibernate/commands/SchemaExportCommand.groovy\r\n\r\nWhich is implemented in the hibernate plugin. One you have implemented you need to add the JAR which it contains to your Gradle build script classpath."}}