grails / grails-database-migration

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

4.0.0-RC1 missing dependencies #229

Closed sbglasius closed 2 years ago

sbglasius commented 2 years ago

Task List

Steps to Reproduce

Create a new Grails 5.0.1 project

grails create-app g501-app

Insert :

      classpath 'org.grails.plugins:database-migration:4.0.0-RC1'

into

buildscript {
     dependencies {

    }
}

Refresh project in Idea or run any gradle task

Expected Behaviour

A refresh or gradle task will pass without problems

Actual Behaviour

I get this list of missing dependencies:

A problem occurred configuring root project 'g501-app'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find org.springframework.boot:spring-boot-starter-logging:.
     Required by:
         project : > org.grails.plugins:database-migration:4.0.0-RC1
   > Could not find org.springframework.boot:spring-boot-starter-actuator:.
     Required by:
         project : > org.grails.plugins:database-migration:4.0.0-RC1
   > Could not find org.springframework.boot:spring-boot-autoconfigure:.
     Required by:
         project : > org.grails.plugins:database-migration:4.0.0-RC1
   > Could not find org.springframework.boot:spring-boot-starter-tomcat:.
     Required by:
         project : > org.grails.plugins:database-migration:4.0.0-RC1
   > Could not find org.grails:grails-web-boot:.
     Required by:
         project : > org.grails.plugins:database-migration:4.0.0-RC1
   > Could not find org.grails:grails-dependencies:.
     Required by:
         project : > org.grails.plugins:database-migration:4.0.0-RC1

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

Environment Information

Example Application

sbglasius commented 2 years ago

If I add these dependencies to buildscript it works:

        classpath "org.grails:grails-dependencies:5.0.1"
        classpath "org.grails:grails-web-boot:5.0.1"
        classpath "org.springframework.boot:spring-boot-starter-tomcat:2.5.5"
        classpath "org.springframework.boot:spring-boot-autoconfigure:2.5.5"
        classpath "org.springframework.boot:spring-boot-starter-actuator:2.5.5"

But it seems wrong to do so

Shown in this branch: https://github.com/sbglasius/grails-database-migration-issue/tree/workaround

sbglasius commented 2 years ago

Also, the list of commands is less than expected:

run the grails cli in interactive mode, write dbm- and press TAB and only these commands are shown:

grails> dbm-

dbm-changelog-to-groovy   dbm-create-changelog      dbm-validate         
ghost commented 2 years ago

Do we have any estimations, when we are expecting here solution and support for Grails 5?