Skip to content
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

Support Groovy 4.0 #57

Open
sergeykad opened this issue Jan 8, 2024 · 2 comments
Open

Support Groovy 4.0 #57

sergeykad opened this issue Jan 8, 2024 · 2 comments

Comments

@sergeykad
Copy link

Spring Boot 3.0 uses Groovy 4. This causes issues while using it together with liquibase-groovy-dsl which is still on Groovy 3.
To make the issue worse in Groovy 4.0, the groupId of the maven coordinates for Groovy have changed from org.codehaus.groovy to org.apache.groovy.

@stevesaliman
Copy link
Collaborator

What errors do you get when Spring Boot runs Liquibase? I have a spring boot 3.2.1 project that can use the Liquibase Groovy DSL without issues.

@sergeykad
Copy link
Author

sergeykad commented Aug 4, 2024

I am unable to reproduce the issue now.
I worked around it by adding the following Gradle configuration:

modules {
    module('org.codehaus.groovy:groovy') {
        replacedBy('org.apache.groovy:groovy', 'conflicts with the current liquibase-groovy-dsl version')
    }
}

What was happening was that I had two Groovy versions simultaneously in my application which was causing errors.
Both org.codehaus.groovy:groovy:3.0.15 (from the plugin) and org.apache.groovy:groovy:4.0.22 (from Spring) were in the classpath.

Besides, org.codehaus.groovy:groovy:3.0.15 is quite old and has vulnerabilities from dependencies:
CVE-2022-46751
CVE-2022-41966
CVE-2022-40151

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants