Git Product home page Git Product logo

Comments (16)

stevesaliman avatar stevesaliman commented on July 25, 2024 4

As long as version 3.5 doesn't introduce any changes to what can be in a changelog, I should be able to do this over the weekend.

from liquibase-gradle-plugin.

kksoft avatar kksoft commented on July 25, 2024 2

I have voted for this issue https://liquibase.jira.com/browse/CORE-2920
Maybe others can do the same?

from liquibase-gradle-plugin.

eximius313 avatar eximius313 commented on July 25, 2024 2

Good news: https://liquibase.jira.com/browse/CORE-2920 will be fixed in 3.6.0!

from liquibase-gradle-plugin.

stevesaliman avatar stevesaliman commented on July 25, 2024 1

It looks like Liquibase 3.5.1 has some problems with the sqlFile change, whose endDelimiter attribute appears to be broken. I don't really want to update the plugin to this version until it is fixed - if for no other reason than it will break the projects we have at my day job :-)

If this is not a problem for you, and you don't need any of the 10 new attributes provided, like context on an include, then there is a way you can get the existing plugin to use a different version of Liquibase. Simply edit the build.gradle file and replace:

classpath 'org.liquibase:liquibase-gradle-plugin:1.2.1'

with:

classpath('org.liquibase:liquibase-gradle-plugin:1.2.1') {
  exclude group: "org.liquibase", module: "liquibase-core"
}
classpath "org.liquibase:liquibase-core:3.5.1"

And the plugin will use Liquibase 3.5.1 to run the change sets.

Development of Liquibase 4.0 is well underway, and I've been reworking the Groovy DSL to work with it. Hopefully, the Groovy DSL and the Gradle plugin will be able to support Liquibase 4.0 as soon as it comes out.

from liquibase-gradle-plugin.

siarhei-usau avatar siarhei-usau commented on July 25, 2024 1

Our team definitely needs new plugin with 3.5.2 when 3.5.2 is out.
https://liquibase.jira.com/browse/CORE-2761
https://liquibase.jira.com/browse/CORE-2756
are blocker for us.

from liquibase-gradle-plugin.

stevesaliman avatar stevesaliman commented on July 25, 2024 1

The delimiter problem mentioned above still exists in 3.5.3. I created https://liquibase.jira.com/browse/CORE-2920 to track this issue in the Liquibase core. Until it gets fixed in Liquibase, users can use 3.5.x versions of Liquibase with the workaround described earlier.

from liquibase-gradle-plugin.

diegogargaro avatar diegogargaro commented on July 25, 2024

I agree. If it will break other things on this new version is better to wait until a stable one is released.

Thanks for the tip! I use the new attributes but they are not needed for the dropAll task, so I can change the version when I need it.

from liquibase-gradle-plugin.

denisazevedo avatar denisazevedo commented on July 25, 2024

Hi guys, any news on this upgrade? Thanks

from liquibase-gradle-plugin.

newnewcoder avatar newnewcoder commented on July 25, 2024

I have voted for CORE-2920 too.
Issue CORE-1897 happened to me, it's solved in Liquibase 3.5.
It would be nice to have the issue fixed insdead of using workaround.

from liquibase-gradle-plugin.

devotional avatar devotional commented on July 25, 2024

I voted for CORE-2920 as well. I have stumbled into CORE-2688 solved in 3.5.0.

from liquibase-gradle-plugin.

stevesaliman avatar stevesaliman commented on July 25, 2024

That is good news.

I'll start watching for a release, then I can make sure the plugin (or the Groovy DSL under it) still works with the latest release. Chances are I'll have to make some minor tweaks to support additions and deprecations in the new version of Liquibase

from liquibase-gradle-plugin.

stevesaliman avatar stevesaliman commented on July 25, 2024

Well the good news seems to have faded pretty quickly. I started testing the plugin with the latest pre-release build of version 3.6.0, and immediately ran into https://liquibase.jira.com/browse/CORE-3159, which appears to prevent Liquibase from being run from Gradle at all.

Not good.

So now I'll be following this new bug to see if there is anything that can be done. The good news is that I've found the source of the problem and come up with a potential fix, but I'm not sure it is the best fix.

The saga continues :-)

from liquibase-gradle-plugin.

eximius313 avatar eximius313 commented on July 25, 2024

Good luck then! :)

from liquibase-gradle-plugin.

stevesaliman avatar stevesaliman commented on July 25, 2024

Thanks to @litpho, we have a workaround for the classpath problems in CORE-3159. I'm still working on getting a release out, but until then, you can use version 2.0.0-SNAPSHOT of the plugin to use Liquiabse 3.6.

The latest version of Liquibase seems to have some logging issues that prevent the changes from being shown as they are run, but for those who need the latest version of Liquibase, this may offer a solution.

from liquibase-gradle-plugin.

stevesaliman avatar stevesaliman commented on July 25, 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 July 25, 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.

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.