Migrations are not applied to DB. Also there is no logs related to mongock while running application
mariyajosh opened this issue · comments
katteboina mariya josh commented
Description
[Description of the issue]
PRIORITY
CRITICAL
[CRITICAL, NORMAL or MINOR]
Version and environment
id 'org.springframework.boot' version '3.1.0-SNAPSHOT'
Mongock
compileOnly 'io.mongock:mongock-springboot:5.2.4'
implementation 'com.github.cloudyrock.mongock:mongodb-springdata-v3-driver:4.3.8'
Environment
Spring-data-mongodb
Steps to Reproduce
- After adding above dependencies.
- create a changelog package and define sample change unit.
- define changelog location in application.properties
Oliver Santana commented
Hello @mariyajosh , it seems a problem related to Mongock's usage with Springboot v3. Mongock is compatible with Springboot v3, but at the moment only in combination with SpringData v4 Driver. Please take a look to this sample project:
Springboot v3 + Springdata v4 - Sample Project (JDK17)
Hope it helps you.