I am using java 11, and I have added flyway in spring-boot application like below.
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation group: 'mysql', name: 'mysql-connector-java', version: '8.0.29'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: '2.7.0'
implementation group: 'org.flywaydb', name: 'flyway-core', version: '8.5.13'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
and added properties as
# flyway
spring.flyway.baseline-on-migrate=true
spring.flyway.enabled=false
#spring.flyway.enabled=true
spring.flyway.locations=classpath:db/migration
but it is producing an error that, org.flywaydb.core.api.FlywayException: Unsupported Database: MySQL 8.0