The name of the application is almost not related to Grails 3. It is used as the base name when creating the WAR file, but it is trivial to rename it before deployment, and you will probably be regardless of the version of the application.
It is used as the initial value of the grails.codegen.defaultPackage config setting, but you can easily change this:
grails: codegen: defaultPackage: 'com.foo.bar'
But I would not bother with this, since I do not use the default package - I specify a package for each artifact, so as not to end all in one package.
In older versions of Grails, it was used as the default context when launching the application through run-app , for example. http://localhost:8080/appname , but Grails 3 uses the default behavior of Spring Boot, and by default there is no context. But if you want to specify a run-app context, you can do this (and optionally a port) with:
server: contextPath: /wheeeeeeee port: 9090
Gradle The default behavior is to use the directory name as the project name. If you want to override this, create the settings.gradle file and set the rootProject.name property:
rootProject.name = 'custom_app_name'
Burt beckwith
source share