In summary added compatibility with flyway 10 using reflection when initializing flyway scanner. Add mechanism to check the dependency based on the mentioned flyway versions. For https://github.com/spring-projects/spring-boot/issues/38923

Comment From: wilkinsona

Thank you, @MazizEsa, and congratulations on making your first contribution to Spring Boot.

Comment From: MazizEsa

Thanks @wilkinsona for polishing up. My apologies towards the end, I got busier with my work, hence slower in the implementation.