Specifying default package for all Grails artefacts

1 min read
Share:

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 = "your.package.name"[/code]

Looked into grails documentation but didn’t find it there, after some search found this jira issue. Seems this was some how missed in the documentation.

Cheers,
Ankur
ankur@intelligrape.com

comments ( 3 )

  1. Was going through config.groovy
    first line of which is
    grails.project.groupId = appName // change this to alter the default package name and Maven publishing destination

    🙂

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *