grails / grails-database-migration

Grails® framework Database Migration Plugin
Apache License 2.0
98 stars 116 forks source link

migration scripts not working with Grails 5.0.3 #255

Closed rilisema closed 2 years ago

rilisema commented 2 years ago

Hi,

After creating a new grails 5.0.3 project I attempted to get the migration plugin working, but it doesn't seem to work.

Steps to Reproduce

./grailsw dbm-generate-gorm-changelog changelog.groovy

It immediately fails. | Error Command not found dbm-generate-gorm-changelog Did you mean: generate-all or generate-views or generate-controller?

Environment Information

Example Application

https://github.com/rilisema/dbm-app.git

rilisema commented 2 years ago

Apparently my build.gradle was wrong:

    compileOnly 'org.grails.plugins:database-migration:3.1.0'
    compileOnly 'org.liquibase:liquibase-core:3.6.1'

should be

    implementation "org.grails.plugins:database-migration:3.1.0"
    implementation 'org.liquibase:liquibase-core:3.10.1' // Default Grails 5.0.0 spring boot BOM version 4.3.2 currently does NOT work with dbm plugin.

Solution found in issue #191