kofhearts
02/19/2024, 5:06 AMMichael Yan
02/19/2024, 11:15 AMkofhearts
02/19/2024, 11:40 AMMichael Yan
02/19/2024, 12:05 PMorg.grails.cli.profile.commands.CreateAppCommand , add it to the classpath in your $GRAILS_HOME/bin/grails.sh .Michael Yan
02/19/2024, 12:07 PMMichael Yan
02/19/2024, 1:23 PMSteve Osguthorpe
02/20/2024, 10:06 AMgrails create-app --list-features
Gives you a list of available features.
TO create an app that uses (GORM with hibernate 5+ and Mysql config settings, use
grails create-app --features=gorm-hibernate5,mysql <some.package.name.AppName>Michael Yan
02/20/2024, 3:18 PMSteve Osguthorpe
02/20/2024, 3:27 PM* create-app NAME
* create-webapp NAME
* create-restapi NAME
* create-plugin NAME
* create-webplugin NAME
Instead of the profile flag.
I think given this is only for bootstrapping, this seems like a better fit. I don't know how you would add custom commands though.Michael Yan
02/20/2024, 4:05 PMsdkman install . I understand that this is not the officially recommended way, but they didn’t tell you that the profiles and commands are still exist in grails-shell , it works if you have some custom profiles.Steve Osguthorpe
02/20/2024, 4:11 PMMichael Yan
02/20/2024, 4:25 PMcreate-app command to generate a new app, this is not the same thing as what you said about using gradle directly. Do you like the gradlew runnCommand -Pargs="" ? Oh, it’s ugly, hard to use.Steve Osguthorpe
02/20/2024, 4:30 PMMichael Yan
02/20/2024, 4:54 PMCommand : ApplicationCommand, ProfileCommand , ProjectCommand ,create-app is just a Command , the gradle runCommand task running is ApplicationCommand. The CLI is just a code generate tool written by Micronaut CLI, the features and templates inside it you can’t modified for your needs. Spring Boot CLI supports adding extensions to the CLI by using the install command, this is what I want: create your own NewCommand, and install it to the CLI’s classpath, then you can use it.kofhearts
02/21/2024, 5:20 AMkofhearts
02/21/2024, 5:20 AMkofhearts
02/23/2024, 5:37 AMgrails create-app --features=gorm-hibernate5,mysql <some.package.name.AppName>
i am using grails 4.0.10 and is there a way to use this flag for this version of grails. I would like to create a grails 4.0.10 project with mysql8 already configured. thank you!Steve Osguthorpe
02/23/2024, 8:46 AMSteve Osguthorpe
02/23/2024, 8:48 AMkofhearts
02/25/2024, 7:49 AM