Grails Profiles for Grails 6 and 7 #13583
Replies: 5 comments 8 replies
-
The removal of profiles has stopped us from upgrading to 6 at the moment. We have a few internal profile we use that have been rendered useless. Also, not sure if it is 100% related but I don't see value in using the Grails forge. Much rather just have the shell as it always has been. Let's keep the framework friendly and not invalidate years of documentation by removing the simple |
Beta Was this translation helpful? Give feedback.
-
We had a profile to startup Dueuno Elements applications, it would be great to make it usable again. |
Beta Was this translation helpful? Give feedback.
-
@TheRetroRoot & @gsartori : I've published initial 6.0.0-SNAPSHOT's of Grails Web and Base Profiles which are compatible with Grails 6. The skeleton(contents) are the same as the 5 release with the exception of Grails 6 compatible Grails Wrapper and Gradle 7.6.4 wrapper files, so this is a starting place to add additional changes necessary on the skeleton and dependencies. jamesfredley/Grails62ShellWrapperProfilesDemo - can be tested with |
Beta Was this translation helpful? Give feedback.
-
I agree with @TheRetroRoot, Grails Shell is better than Grails Forge, not only for generating projects but also provides many commands, the most important thing is that it allows users to create private Profiles for internal projects. The missing features are lack of support Groovy Markup Templates and custom profiles are not allowed to be published in Grails namespace, so they are not easily shared and discovered by the community. I created a custom profile for better Bootstrap CSS support https://github.com/rainboyan/web-bootstrap/, only a few people know that, it's not easy to use custom profile in Grails. I also implemented Application Templates for Grace, support Groovy template engine to generate files and use Groovy Ant tasks to write scripts and hooks, you can create your own templates or boilerplates and share them on GitHub, the other developers can use them too. |
Beta Was this translation helpful? Give feedback.
-
Grails Shell will be returning in Grails 6.2.1 and is in the current Grails 7.0.0-SNAPSHOT. Grails Wrapper has been released for Grails 6 and 7 and it will be an optional feature in Grails Forge 6.2.1 and 7.0.0, using either the grails distribution or https://start.grails.org/. Releases: https://github.com/grails/grails-wrapper/releases And finally Grails 6 and Grails 7 compatible profiles have been published. These exist to support Grails Shell CLI which requires Profiles and users with custom internal profiles. They have not been fully upgraded to generate up to date Grails 6 and 7 apps via create-app. Grails Forge, either the grails distribution or https://start.grails.org/ should be used for creating a new apps. Grails 6 profile versions: Grails 7 profile versions: |
Beta Was this translation helpful? Give feedback.
-
Grails Shell, Wrapper and Profiles can optionally be used in Grails 6 to bridge the following gaps and provide time for them to be migrated to gradle, directly:
grails list-plugins
andgrails dbm-update
Grails Profiles have not been updated since early in Grails 5, but "work" on Grails 6.
Grails Shell 6.1.2 was released with Grails 6.1.2 and Grails Shell 6.2.1 is soon to be released with Grails 6.2.1.
Grails Wrapper 4.0.0 for Grails 6 is available and there is a PR to add it as an optional feature on Grails Forge
Example Grails 6.2 app with Grails Shell, Wrapper and Web Profile: https://github.com/jamesfredley/Grails62ShellWrapperProfilesDemo
diff to add Grails Shell, Wrapper and Web Profile: jamesfredley/Grails62ShellWrapperProfilesDemo@72c4fef
How do you use Grails Profiles?
14 votes ·
Beta Was this translation helpful? Give feedback.
All reactions