Git Product home page Git Product logo

Comments (9)

stevesaliman avatar stevesaliman commented on August 29, 2024

Thank you for the comprehensive test case. It is better than I usually get :-)

I think this is an issue with Liquibase itself. I downloaded the liquibase-core-3.5.3 and Mysql connector jars from Maven central, and I put them in the root directory of your project. I then ran the following:

java -jar liquibase-core-3.5.3.jar \
    --classpath=mysql-connector-java-5.1.34_1.jar \
    --logLevel=info \
    --changeLogFile=src/main/resources/db/changelog/db.changelog.xml \
    --url=jdbc:mysql://localhost:3306/userdb \
    --username=userdb \
    --password=userdb \
    update

When I did this, I got the same error as you did, but without Gradle in the mix - just straight Liquibase. I got the error for both relative and absolute paths to the change log file. I'd give that a try in your environment. If you see the same behavior in your environment, I'd recommend reporting the but in the Liquibase Jira. Previous reports of this bug are marked as fixed in previous versions, but it is clearly back now.

from liquibase-gradle-plugin.

eximius313 avatar eximius313 commented on August 29, 2024

The problem is that, as long as #11 is unresolved, even if they fix it, we still we can not benefit from it :(

from liquibase-gradle-plugin.

stevesaliman avatar stevesaliman commented on August 29, 2024

There are a couple of Liquibase bugs in our way, aren't there :-)

Fortunately, if they fix the includeAll bug, but not the sqlFile bug, you can still use the latest Liquibase with the Gradle plugin by applying the workaround mentioned in #11

from liquibase-gradle-plugin.

kgoralski avatar kgoralski commented on August 29, 2024

Seems that this helped me: https://stackoverflow.com/questions/27187979/gradle-liquibase-change-log-file-could-not-be-found

but now it is executing twice ;)

from liquibase-gradle-plugin.

eximius313 avatar eximius313 commented on August 29, 2024

this is completly different problem

from liquibase-gradle-plugin.

evaldobratti avatar evaldobratti commented on August 29, 2024

Maybe I'm running on this same problem in my project, do we have any update on this issue?

from liquibase-gradle-plugin.

stevesaliman avatar stevesaliman commented on August 29, 2024

Liquibase has fixed the blocking bug that was mentioned in #11, so I'm working on a version of the DSL that supports Liquibase 3.6.

Version 2.0.0-SNAPSHOT of the plugin has been released to the Sonatype snapshot repository, so you could try it out and see if it fixes your issue.

from liquibase-gradle-plugin.

stevesaliman avatar stevesaliman commented on August 29, 2024

I've just uploaded the latest 2.0.0-SNAPSHOT releases of the Gradle plugin and the Groovy DSL, which should now fully support parsing Liquibase 3.6.1 changelogs.

I still have some testing to do to make sure the serializers work, I need to update the documentation, and I need to look into workarounds for the logging problem, but I hope to have a final release done soon. In the meantime, users who need to use versions of Liquibase later than 3.4.2 can use the SNAPSHOT releases to get up and running.

from liquibase-gradle-plugin.

stevesaliman avatar stevesaliman commented on August 29, 2024

Release 2.0.0 is now official! Liquibase 3.6.1 is now fully supported.

Version 2.0.0 is a breaking change. I tried to document the changes well, please feel free to submit pull requests if there are ways to make the documentation clearer.

I spent a lot of time working with the include and includeAll elements of the databaseChangeLog, and I think they work much better now. I did discover a bug with versions 1.2.2 through 1.2.4, so if you're upgrading from one of them, please make sure to read up on the required updates to the DATABASECHANGELOG table for changes that were already run.

Also note that Liquibase itself has some issues with logging and console output, as documented in CORE-3220. Until that gets fixed, you can enable console output by adding mainClassName 'org.liquibase.gradle.OutputEnablingLiquibaseRunner' to the liquibase block of build.gradle.

from liquibase-gradle-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.