You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@grails.apache.org by Gianluca Sartori <g....@gmail.com> on 2025/04/18 09:01:22 UTC

'grails-app' folder name

I've been thinking about this forever...

We have the `grails-app` folder containing the conventions over
configuration project structure that is a Grails standard, a different one
from the `src` folder structure.

The fact it contains `grails` in its name can be useful to immediately
recognise the type of the project by giving a quick look at the directory
tree. But to my eyes that is all it does.

I think today I finally found the braveness and recklessness to propose we
change it to a more "domain specific" or "technical" name instead of having
the name of the product in it.

The meaning of that folder should be given by its role in the context
rather than a marketing/communication purpose.

So I am proposing we change the `grails-app` to `webapp` to indicate it
contains the web part of the application.

Pros:
- Removes the name of the product from a technical folder
- Gives it a meaning that is immediately intelligible from a developer
point of view (more people know what a `webapp` is that a `grails-app`, no
need to explain further)
- It is a good time to make this change since the move to Apache is a big
change/event

Cons:
- Breaking change when porting applications from older Grails versions
(must be documented but it's an easy fix)

Bomb dropped, what is the community opinion?

Cheers,
Gianluca Sartori

Re: 'grails-app' folder name

Posted by Andrew Garcia <an...@goodshuffle.com.INVALID>.
Hi Gianluca,
For me I try to use /assets to imply and assert files that participate in
the asset-pipeline and are compiled & handled in a particular way with its
own build system entirely separate from Angular

-Andrew

On Fri, Apr 18, 2025 at 8:54 AM Gianluca Sartori <g....@gmail.com>
wrote:

> Hi Andrew,
>
> out of curiosity, what's the reason why you are not using the
> `/grails-app/assets` folder to store your client side JS code?
>
> Gianluca Sartori
>
> On Fri, 18 Apr 2025 at 14:44, Andrew Garcia <andrew@goodshuffle.com
> .invalid>
> wrote:
>
> > Hi Gianluca,
> > We hold out angular files in src/main/client which I’d say also makes it
> > qualify as the “webapp”. For me the grails-app folder helps make clear
> the
> > separation of concerns; grails-app is my backend benefiting from all the
> > frameworks benefits and conventions, src is the Wild West of plain Java
> > classes (usually global enums) and a place for modern front end
> frameworks
> > to live.
> >
> > -Andrew
> >
> > Sent from my iPhone
> >
> > > On Apr 18, 2025, at 7:23 AM, Søren Berg Glasius <so...@glasius.dk>
> > wrote:
> > >
> > > Hi Gianluca,
> > >
> > > To me, grails-app is just a folder name like webapp, so I don't see the
> > > benefit of changing the folder-name, except for a few letters shorter.
> > >
> > > If others think the idea is good, I'm not opposed to it, I just don't
> > see a
> > > big win.
> > >
> > >> Den fre. 18. apr. 2025 kl. 11.01 skrev Gianluca Sartori <
> > g.sartori@gmail.com
> > >>> :
> > >>
> > >> I've been thinking about this forever...
> > >>
> > >> We have the `grails-app` folder containing the conventions over
> > >> configuration project structure that is a Grails standard, a different
> > one
> > >> from the `src` folder structure.
> > >>
> > >> The fact it contains `grails` in its name can be useful to immediately
> > >> recognise the type of the project by giving a quick look at the
> > directory
> > >> tree. But to my eyes that is all it does.
> > >>
> > >> I think today I finally found the braveness and recklessness to
> propose
> > we
> > >> change it to a more "domain specific" or "technical" name instead of
> > having
> > >> the name of the product in it.
> > >>
> > >> The meaning of that folder should be given by its role in the context
> > >> rather than a marketing/communication purpose.
> > >>
> > >> So I am proposing we change the `grails-app` to `webapp` to indicate
> it
> > >> contains the web part of the application.
> > >>
> > >> Pros:
> > >> - Removes the name of the product from a technical folder
> > >> - Gives it a meaning that is immediately intelligible from a developer
> > >> point of view (more people know what a `webapp` is that a
> `grails-app`,
> > no
> > >> need to explain further)
> > >> - It is a good time to make this change since the move to Apache is a
> > big
> > >> change/event
> > >>
> > >> Cons:
> > >> - Breaking change when porting applications from older Grails versions
> > >> (must be documented but it's an easy fix)
> > >>
> > >> Bomb dropped, what is the community opinion?
> > >>
> > >> Cheers,
> > >> Gianluca Sartori
> > >>
> > >
> > >
> > > --
> > >
> > > Med venlig hilsen,
> > > Søren Berg Glasius
> > >
> > > Hedevej 1, Gl. Rye, 8680 Ry
> > > Mobile: +45 40 44 91 88
> > > --- Press ESC once to quit - twice to save the changes.
> >
>


-- 

*Andrew Garcia* | Co-Founder & CEO
andrew@goodshuffle.com

*Goodshuffle Pro*
<https://pro.goodshuffle.com/?utm_source=goodshuffle&utm_medium=email&utm_campaign=employeesignature&fbid=emailsignaturehomepage>
 | Read our reviews on Capterra
<https://www.capterra.com/p/167364/Goodshuffle-Pro/reviews/>

<https://www.facebook.com/Goodshuffle/>
<https://www.instagram.com/goodshuffle/>
<https://www.linkedin.com/company/goodshuffle/posts/?feedView=all>
<https://www.youtube.com/c/GoodshufflePro>

<https://pro.goodshuffle.com/dispatch-lp?utm_source=goodshuffle&utm_medium=referral&utm_campaign=Feature_Release>

Re: 'grails-app' folder name

Posted by Gianluca Sartori <g....@gmail.com>.
Hi Andrew,

out of curiosity, what's the reason why you are not using the
`/grails-app/assets` folder to store your client side JS code?

Gianluca Sartori

On Fri, 18 Apr 2025 at 14:44, Andrew Garcia <an...@goodshuffle.com.invalid>
wrote:

> Hi Gianluca,
> We hold out angular files in src/main/client which I’d say also makes it
> qualify as the “webapp”. For me the grails-app folder helps make clear the
> separation of concerns; grails-app is my backend benefiting from all the
> frameworks benefits and conventions, src is the Wild West of plain Java
> classes (usually global enums) and a place for modern front end frameworks
> to live.
>
> -Andrew
>
> Sent from my iPhone
>
> > On Apr 18, 2025, at 7:23 AM, Søren Berg Glasius <so...@glasius.dk>
> wrote:
> >
> > Hi Gianluca,
> >
> > To me, grails-app is just a folder name like webapp, so I don't see the
> > benefit of changing the folder-name, except for a few letters shorter.
> >
> > If others think the idea is good, I'm not opposed to it, I just don't
> see a
> > big win.
> >
> >> Den fre. 18. apr. 2025 kl. 11.01 skrev Gianluca Sartori <
> g.sartori@gmail.com
> >>> :
> >>
> >> I've been thinking about this forever...
> >>
> >> We have the `grails-app` folder containing the conventions over
> >> configuration project structure that is a Grails standard, a different
> one
> >> from the `src` folder structure.
> >>
> >> The fact it contains `grails` in its name can be useful to immediately
> >> recognise the type of the project by giving a quick look at the
> directory
> >> tree. But to my eyes that is all it does.
> >>
> >> I think today I finally found the braveness and recklessness to propose
> we
> >> change it to a more "domain specific" or "technical" name instead of
> having
> >> the name of the product in it.
> >>
> >> The meaning of that folder should be given by its role in the context
> >> rather than a marketing/communication purpose.
> >>
> >> So I am proposing we change the `grails-app` to `webapp` to indicate it
> >> contains the web part of the application.
> >>
> >> Pros:
> >> - Removes the name of the product from a technical folder
> >> - Gives it a meaning that is immediately intelligible from a developer
> >> point of view (more people know what a `webapp` is that a `grails-app`,
> no
> >> need to explain further)
> >> - It is a good time to make this change since the move to Apache is a
> big
> >> change/event
> >>
> >> Cons:
> >> - Breaking change when porting applications from older Grails versions
> >> (must be documented but it's an easy fix)
> >>
> >> Bomb dropped, what is the community opinion?
> >>
> >> Cheers,
> >> Gianluca Sartori
> >>
> >
> >
> > --
> >
> > Med venlig hilsen,
> > Søren Berg Glasius
> >
> > Hedevej 1, Gl. Rye, 8680 Ry
> > Mobile: +45 40 44 91 88
> > --- Press ESC once to quit - twice to save the changes.
>

Re: 'grails-app' folder name

Posted by Andrew Garcia <an...@goodshuffle.com.INVALID>.
Hi Gianluca,
We hold out angular files in src/main/client which I’d say also makes it qualify as the “webapp”. For me the grails-app folder helps make clear the separation of concerns; grails-app is my backend benefiting from all the frameworks benefits and conventions, src is the Wild West of plain Java classes (usually global enums) and a place for modern front end frameworks to live. 

-Andrew 

Sent from my iPhone

> On Apr 18, 2025, at 7:23 AM, Søren Berg Glasius <so...@glasius.dk> wrote:
> 
> Hi Gianluca,
> 
> To me, grails-app is just a folder name like webapp, so I don't see the
> benefit of changing the folder-name, except for a few letters shorter.
> 
> If others think the idea is good, I'm not opposed to it, I just don't see a
> big win.
> 
>> Den fre. 18. apr. 2025 kl. 11.01 skrev Gianluca Sartori <g.sartori@gmail.com
>>> :
>> 
>> I've been thinking about this forever...
>> 
>> We have the `grails-app` folder containing the conventions over
>> configuration project structure that is a Grails standard, a different one
>> from the `src` folder structure.
>> 
>> The fact it contains `grails` in its name can be useful to immediately
>> recognise the type of the project by giving a quick look at the directory
>> tree. But to my eyes that is all it does.
>> 
>> I think today I finally found the braveness and recklessness to propose we
>> change it to a more "domain specific" or "technical" name instead of having
>> the name of the product in it.
>> 
>> The meaning of that folder should be given by its role in the context
>> rather than a marketing/communication purpose.
>> 
>> So I am proposing we change the `grails-app` to `webapp` to indicate it
>> contains the web part of the application.
>> 
>> Pros:
>> - Removes the name of the product from a technical folder
>> - Gives it a meaning that is immediately intelligible from a developer
>> point of view (more people know what a `webapp` is that a `grails-app`, no
>> need to explain further)
>> - It is a good time to make this change since the move to Apache is a big
>> change/event
>> 
>> Cons:
>> - Breaking change when porting applications from older Grails versions
>> (must be documented but it's an easy fix)
>> 
>> Bomb dropped, what is the community opinion?
>> 
>> Cheers,
>> Gianluca Sartori
>> 
> 
> 
> --
> 
> Med venlig hilsen,
> Søren Berg Glasius
> 
> Hedevej 1, Gl. Rye, 8680 Ry
> Mobile: +45 40 44 91 88
> --- Press ESC once to quit - twice to save the changes.

Re: 'grails-app' folder name

Posted by Søren Berg Glasius <so...@glasius.dk>.
Hi Gianluca,

To me, grails-app is just a folder name like webapp, so I don't see the
benefit of changing the folder-name, except for a few letters shorter.

If others think the idea is good, I'm not opposed to it, I just don't see a
big win.

Den fre. 18. apr. 2025 kl. 11.01 skrev Gianluca Sartori <g.sartori@gmail.com
>:

> I've been thinking about this forever...
>
> We have the `grails-app` folder containing the conventions over
> configuration project structure that is a Grails standard, a different one
> from the `src` folder structure.
>
> The fact it contains `grails` in its name can be useful to immediately
> recognise the type of the project by giving a quick look at the directory
> tree. But to my eyes that is all it does.
>
> I think today I finally found the braveness and recklessness to propose we
> change it to a more "domain specific" or "technical" name instead of having
> the name of the product in it.
>
> The meaning of that folder should be given by its role in the context
> rather than a marketing/communication purpose.
>
> So I am proposing we change the `grails-app` to `webapp` to indicate it
> contains the web part of the application.
>
> Pros:
> - Removes the name of the product from a technical folder
> - Gives it a meaning that is immediately intelligible from a developer
> point of view (more people know what a `webapp` is that a `grails-app`, no
> need to explain further)
> - It is a good time to make this change since the move to Apache is a big
> change/event
>
> Cons:
> - Breaking change when porting applications from older Grails versions
> (must be documented but it's an easy fix)
>
> Bomb dropped, what is the community opinion?
>
> Cheers,
> Gianluca Sartori
>


-- 

Med venlig hilsen,
Søren Berg Glasius

Hedevej 1, Gl. Rye, 8680 Ry
Mobile: +45 40 44 91 88
--- Press ESC once to quit - twice to save the changes.

Re: 'grails-app' folder name

Posted by Gianluca Sartori <g....@gmail.com>.
Just to make it clear it was not part of the proposal to move the folder
under `src`, just to rename it.

I was not aware of all the implications with the plugins and I know it is
not a priority at all, but to me the timing was good to "speak now or
forever hold your peace".
I tried it, thank you all for your arguments!

Gianluca Sartori



On Fri, 18 Apr 2025 at 18:17, James Daugherty
<jd...@jdresources.net.invalid> wrote:

> The grails-app directory is there to force a division between domain |
> views | services | assets.  It can contain non-source files, and thus it
> wouldn't make sense to have it under src ever.  We need a way to
> distinguish this, and putting it under resource wouldn't make sense since
> the files are often the source of generated code, not the resource itself.
>
> Given the history of grails, I too would not want to change grails-app's
> name since it's clear that project is now a grails application, there's a
> history of using it to distinguish the aforementioned assets, every plugin
> would need to change for this, and all existing training material would
> need to be updated.  We have previously talked about how one of our largest
> struggles is the current marketing of Grails and how we need to push
> forward in this area.  Renaming grails-app would go counter to that and
> cause confusion, so I'm not for this.
>
> -James
>
>
> On Fri, Apr 18, 2025 at 10:54 AM James Fredley <ja...@apache.org>
> wrote:
>
> > I have never thought much about the grails-app directory name and do not
> > think it should change since it does a good job describing the contents.
> >
> > We should review our documentation around the directory structure, for a
> > Grails application, to ensure it clearly details the structure and
> purpose
> > for each main directory for Grails 7.
> >
> > On 2025/04/18 09:01:22 Gianluca Sartori wrote:
> > > I've been thinking about this forever...
> > >
> > > We have the `grails-app` folder containing the conventions over
> > > configuration project structure that is a Grails standard, a different
> > one
> > > from the `src` folder structure.
> > >
> > > The fact it contains `grails` in its name can be useful to immediately
> > > recognise the type of the project by giving a quick look at the
> directory
> > > tree. But to my eyes that is all it does.
> > >
> > > I think today I finally found the braveness and recklessness to propose
> > we
> > > change it to a more "domain specific" or "technical" name instead of
> > having
> > > the name of the product in it.
> > >
> > > The meaning of that folder should be given by its role in the context
> > > rather than a marketing/communication purpose.
> > >
> > > So I am proposing we change the `grails-app` to `webapp` to indicate it
> > > contains the web part of the application.
> > >
> > > Pros:
> > > - Removes the name of the product from a technical folder
> > > - Gives it a meaning that is immediately intelligible from a developer
> > > point of view (more people know what a `webapp` is that a `grails-app`,
> > no
> > > need to explain further)
> > > - It is a good time to make this change since the move to Apache is a
> big
> > > change/event
> > >
> > > Cons:
> > > - Breaking change when porting applications from older Grails versions
> > > (must be documented but it's an easy fix)
> > >
> > > Bomb dropped, what is the community opinion?
> > >
> > > Cheers,
> > > Gianluca Sartori
> > >
> >
>

Re: 'grails-app' folder name

Posted by James Daugherty <jd...@jdresources.net.INVALID>.
The grails-app directory is there to force a division between domain |
views | services | assets.  It can contain non-source files, and thus it
wouldn't make sense to have it under src ever.  We need a way to
distinguish this, and putting it under resource wouldn't make sense since
the files are often the source of generated code, not the resource itself.

Given the history of grails, I too would not want to change grails-app's
name since it's clear that project is now a grails application, there's a
history of using it to distinguish the aforementioned assets, every plugin
would need to change for this, and all existing training material would
need to be updated.  We have previously talked about how one of our largest
struggles is the current marketing of Grails and how we need to push
forward in this area.  Renaming grails-app would go counter to that and
cause confusion, so I'm not for this.

-James


On Fri, Apr 18, 2025 at 10:54 AM James Fredley <ja...@apache.org>
wrote:

> I have never thought much about the grails-app directory name and do not
> think it should change since it does a good job describing the contents.
>
> We should review our documentation around the directory structure, for a
> Grails application, to ensure it clearly details the structure and purpose
> for each main directory for Grails 7.
>
> On 2025/04/18 09:01:22 Gianluca Sartori wrote:
> > I've been thinking about this forever...
> >
> > We have the `grails-app` folder containing the conventions over
> > configuration project structure that is a Grails standard, a different
> one
> > from the `src` folder structure.
> >
> > The fact it contains `grails` in its name can be useful to immediately
> > recognise the type of the project by giving a quick look at the directory
> > tree. But to my eyes that is all it does.
> >
> > I think today I finally found the braveness and recklessness to propose
> we
> > change it to a more "domain specific" or "technical" name instead of
> having
> > the name of the product in it.
> >
> > The meaning of that folder should be given by its role in the context
> > rather than a marketing/communication purpose.
> >
> > So I am proposing we change the `grails-app` to `webapp` to indicate it
> > contains the web part of the application.
> >
> > Pros:
> > - Removes the name of the product from a technical folder
> > - Gives it a meaning that is immediately intelligible from a developer
> > point of view (more people know what a `webapp` is that a `grails-app`,
> no
> > need to explain further)
> > - It is a good time to make this change since the move to Apache is a big
> > change/event
> >
> > Cons:
> > - Breaking change when porting applications from older Grails versions
> > (must be documented but it's an easy fix)
> >
> > Bomb dropped, what is the community opinion?
> >
> > Cheers,
> > Gianluca Sartori
> >
>

Re: 'grails-app' folder name

Posted by James Fredley <ja...@apache.org>.
I have never thought much about the grails-app directory name and do not think it should change since it does a good job describing the contents.

We should review our documentation around the directory structure, for a Grails application, to ensure it clearly details the structure and purpose for each main directory for Grails 7.   

On 2025/04/18 09:01:22 Gianluca Sartori wrote:
> I've been thinking about this forever...
> 
> We have the `grails-app` folder containing the conventions over
> configuration project structure that is a Grails standard, a different one
> from the `src` folder structure.
> 
> The fact it contains `grails` in its name can be useful to immediately
> recognise the type of the project by giving a quick look at the directory
> tree. But to my eyes that is all it does.
> 
> I think today I finally found the braveness and recklessness to propose we
> change it to a more "domain specific" or "technical" name instead of having
> the name of the product in it.
> 
> The meaning of that folder should be given by its role in the context
> rather than a marketing/communication purpose.
> 
> So I am proposing we change the `grails-app` to `webapp` to indicate it
> contains the web part of the application.
> 
> Pros:
> - Removes the name of the product from a technical folder
> - Gives it a meaning that is immediately intelligible from a developer
> point of view (more people know what a `webapp` is that a `grails-app`, no
> need to explain further)
> - It is a good time to make this change since the move to Apache is a big
> change/event
> 
> Cons:
> - Breaking change when porting applications from older Grails versions
> (must be documented but it's an easy fix)
> 
> Bomb dropped, what is the community opinion?
> 
> Cheers,
> Gianluca Sartori
> 

Re: 'grails-app' folder name

Posted by Brandon Howard <br...@zelifcam.net>.
I get what you’re going for and I appreciate you throwing the idea out there. But I don’t think this is the right move.

The grails app folder isn’t just a label. It’s part of how the framework functions. Grails, the build system, plugins, and pretty much every tool in the ecosystem expect that structure. Changing it would break a lot of stuff and create unnecessary friction for anyone working on or migrating projects.

Also, grails app contains way more than just the web layer. You’ve got domain classes, services, taglibs. It’s the full structure of a Grails app, not just a frontend or web entry point. Calling it webapp might actually confuse more than it helps.

I get wanting to make things cleaner or more neutral, but in this case I think the convention has real value. It’s consistent, well understood, and makes it easier to work across Grails projects without surprises.


From: Gianluca Sartori <g....@gmail.com>
Date: Friday, April 18, 2025 at 4:02 AM
To: dev@grails.apache.org <de...@grails.apache.org>
Subject: 'grails-app' folder name
I've been thinking about this forever...

We have the `grails-app` folder containing the conventions over
configuration project structure that is a Grails standard, a different one
from the `src` folder structure.

The fact it contains `grails` in its name can be useful to immediately
recognise the type of the project by giving a quick look at the directory
tree. But to my eyes that is all it does.

I think today I finally found the braveness and recklessness to propose we
change it to a more "domain specific" or "technical" name instead of having
the name of the product in it.

The meaning of that folder should be given by its role in the context
rather than a marketing/communication purpose.

So I am proposing we change the `grails-app` to `webapp` to indicate it
contains the web part of the application.

Pros:
- Removes the name of the product from a technical folder
- Gives it a meaning that is immediately intelligible from a developer
point of view (more people know what a `webapp` is that a `grails-app`, no
need to explain further)
- It is a good time to make this change since the move to Apache is a big
change/event

Cons:
- Breaking change when porting applications from older Grails versions
(must be documented but it's an easy fix)

Bomb dropped, what is the community opinion?

Cheers,
Gianluca Sartori