Skip to content

Allow developers to customize the app directory#1157

Merged
rainboyan merged 1 commit intograceframework:2024.0.xfrom
rainboyan:support_custom_grails_app_dir
Aug 19, 2025
Merged

Allow developers to customize the app directory#1157
rainboyan merged 1 commit intograceframework:2024.0.xfrom
rainboyan:support_custom_grails_app_dir

Conversation

@rainboyan
Copy link
Member

Grails employs a structured directory layout that organizes files and folders based on their functionality, which is essential for maintaining code in a large application. The app directory is central to a Grails application, containing subdirectories for domains, services, views, controllers, taglibs and assets, which follow the MVC architectural pattern. In the past, Grails has always adhered to the convention of using grails-app as a fixed directory since its inception. In Grace, we can use grails-app, or the more concise app. Now, in the upcoming Grace 2024 version, we take it a step further by allowing developers to customize this directory. You are free to choose a more suitable specific directory, such as web, admin, api, or store.

Grails employs a structured directory layout that organizes files and folders based on their functionality, which is essential for maintaining code in a large application.
The `app` directory is central to a Grails application, containing subdirectories for domains, services, views, controllers, taglibs and assets, which follow the MVC architectural pattern.
In the past, Grails has always adhered to the convention of using `grails-app` as a fixed directory since its inception. In Grace, we can use `grails-app`, or the more concise `app`.
Now, in the upcoming Grace 2024 version, we take it a step further by allowing developers to customize this directory. You are free to choose a more suitable specific directory, such as `web`, `admin`, `api`, or `store`.
@rainboyan rainboyan merged commit 2ee497b into graceframework:2024.0.x Aug 19, 2025
2 checks passed
@rainboyan rainboyan deleted the support_custom_grails_app_dir branch September 1, 2025 15:14
@rainboyan rainboyan self-assigned this Sep 1, 2025
@rainboyan rainboyan added the type: feature A general feature label Sep 1, 2025
@rainboyan rainboyan added this to the 2024.0.0-M2 milestone Sep 1, 2025
@rainboyan rainboyan moved this to Done in 2024.0.0-M2 Sep 1, 2025
rainboyan added a commit that referenced this pull request Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature A general feature

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant