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

Spring-boot 3.0 not support flyway 7.15 #33391

Closed
gecan123 opened this issue Nov 28, 2022 · 2 comments
Closed

Spring-boot 3.0 not support flyway 7.15 #33391

gecan123 opened this issue Nov 28, 2022 · 2 comments
Labels
status: declined A suggestion or change that we don't feel we should currently apply

Comments

@gecan123
Copy link

Context: We are using MySQL 5.7 which is only supported by flyway 7.15.0 or early version. Now we are bumping up spring-boot from 2.7.5 to 3.0.0, and passed the compile step.

But failed happens in app running stage, got the error like below:

build.gradle

plugins {
    id 'java'
    id 'org.springframework.boot' version "3.0.0"
    id 'io.spring.dependency-management' version '1.1.0'
    ...
}
ext['flyway.version'] = '7.15.0'

application log


***************************
APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration$FlywayConfiguration.configureProperties(FlywayAutoConfiguration.java:204)

The following method did not exist:

    'org.flywaydb.core.api.configuration.FluentConfiguration org.flywaydb.core.api.configuration.FluentConfiguration.placeholderSeparator(java.lang.String)'

...enter image description here


Action:

Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration$FlywayConfiguration and org.flywaydb.core.api.configuration.FluentConfiguration

FlywayAutoConfiguration

in method configureProperties(FluentConfiguration configuration, FlywayProperties properties), the FluentConfiguration with 7.15.0 version don't have these properties 'placeholderSeparator', 'kerberosConfigFile'

Is this issue can be resolved by spring team? or i only can bump spring-boot to 3.0 after my database upgrade?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 28, 2022
@wilkinsona
Copy link
Member

With the new major release, we've taken the opportunity to drop support for older versions of Flyway. You'll have to update your database or purchase Flyway Teams which provides support for older DB versions.

@wilkinsona wilkinsona closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2022
@wilkinsona wilkinsona added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 28, 2022
@hpoettker
Copy link
Contributor

hpoettker commented Dec 2, 2022

Just for the sake of completeness: You can use Sprint Boot 3 with Flyway 7.15. But you need to disable auto-configuration for Flyway and configure it yourself.

You can disable the auto-configuration of Flyway by setting the property spring.flyway.enabled to false, or let the auto-configuration back off by registering a bean of type Flyway with code that works with Flyway 7.15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

No branches or pull requests

4 participants