ThomasVitale / cloud-native-spring-in-action

🍃 Code samples and projects from the book "Cloud Native Spring in Action - With Spring Boot and Kubernetes" (Manning)
https://www.manning.com/books/cloud-native-spring-in-action
Apache License 2.0
426 stars 257 forks source link

Chapter 12 - end. Flyway SQL files without flyway dependency in gradle/pom file #37

Closed ahmedkhabkhab closed 1 year ago

ahmedkhabkhab commented 1 year ago

In Chapter-12 end. There are 3 versions but the gradle.build/pom.xml doesn't include any flyway dependency. Am I missing something here?

ahmedkhabkhab commented 1 year ago

Update: to solve the problem, I added flyway core as a runtime dependency

<dependency>
  <groupId>org.flywaydb</groupId>
  <artifactId>flyway-core</artifactId>
  <scope>runtime</scope>
</dependency>

if you're using gradle just add this line to dependencies:

runtimeOnly 'org.flywaydb:flyway-core'

ThomasVitale commented 1 year ago

@ahmedkhabkhab the Flyway dependency is part of the build.gradle file already: https://github.com/ThomasVitale/cloud-native-spring-in-action/blob/main/Chapter12/12-end/catalog-service/build.gradle#L37. Did you encounter issues when running the Gradle example in the repo?