{"id":3996,"date":"2011-07-20T19:52:18","date_gmt":"2011-07-20T14:22:18","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=3996"},"modified":"2016-12-19T15:16:39","modified_gmt":"2016-12-19T09:46:39","slug":"specifying-default-package-for-all-grails-artefacts","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/specifying-default-package-for-all-grails-artefacts\/","title":{"rendered":"Specifying default package for all Grails artefacts"},"content":{"rendered":"<p style='padding-bottom:10px'>\nHi All,\n<\/p>\n<p style='padding-bottom:10px'>\nToday i found how to specify default package for all Grails artefacts, would like to share with you.<br \/>\nBy default when we create any domain, controller or any other artefact, It takes application name as default package. If you want to change that just define grails.project.groupId property in your Config.groovy.<\/p>\n<p>[code] grails.project.groupId = &amp;quot;your.package.name&amp;quot;[\/code]<\/p>\n<p>Looked into grails documentation but didn&#8217;t find it there, after some search found this jira issue. Seems this was some how missed in the documentation.\n<\/p>\n<p style='padding-top:10px'>\nCheers,<br \/>\nAnkur<br \/>\nankur@intelligrape.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi All, Today i found how to specify default package for all Grails artefacts, would like to share with you. By default when we create any domain, controller or any other artefact, It takes application name as default package. If you want to change that just define grails.project.groupId property in your Config.groovy. [code] grails.project.groupId = [&hellip;]<\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":3},"categories":[7],"tags":[848,847,846],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/3996"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=3996"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/3996\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=3996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=3996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=3996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}