-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
None of the dbm-scripts are working with grails 6. #346
Comments
@tircnf Did you get any resolution for this issue? |
@RxL-Nikhil-Kanyal -- Not really. we haven't upgraded to 6 yet. I think your choices are to either stick with pre-6 grails, wait for the grails team to upgrade the plugin, or dig in and upgrade the plugin to use the new way grails runs scripts. |
In Grails 6, the commands are available as Gradle tasks, for example: If not already present, add Although, to run the Another caveat when running commands with 6.2.0 is that there is a bug in grails-bootstrap (after the upgrade to Groovy 3.0.21) when running commands. This bug is fixed by grails/grails-core#13472 and should be included in the next Grails release. |
I think the arguments are in the incorrect order. Should it be @matrei -- Are you saying in that last sentence that there is no way to currently get the scripts to run on grails 6.2?
|
You can run commands that way too. Here is a guide on using application commands in Grails 6:
If you upgrade the Grails version |
Alternatively, as a temporary work around, here's a shell function I use to make it easy to call the original scripts:
Then invoke the scripts like |
I'm just learning grails now, because I got a job as junior dev in a company.. to learn I begin to use 6 and this issue was just blowing my mind.. HOw can we create an app by the forge app, and just don't work? Begining from the driver.. but ok...
|
You will also need to add the following to
Then you can execute them with Grails Shell. org.grails.plugins:database-migration 4.2.1 and 5.0.0-SNAPSHOT have not been migrated fully to Gradle yet. If you are using IntelliJ, you can execute via Run Grails Command
Otherwise you can add grails wrapper, see https://github.com/orgs/grails/discussions/13583, and execute as
|
This is a known issue with all grails plugins after the upgrade to 6.
Task List
Steps to Reproduce
Expected Behaviour
scripts should run.
Actual Behaviour
since the grails 6 upgrade, all plugins with scripts need to change to the new methodology.
Documentation needs to be updated.
Environment Information
The text was updated successfully, but these errors were encountered: