Specifying default package for all Grails artefacts

20 / Jul / 2011 by Ankur Tripathi 3 comments

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

FOUND THIS USEFUL? SHARE IT

comments (3)

  1. Ankur Tripathi

    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 *