- JDK 8 or 11 (not newer!)
- sbt 1.x
- Docker
-
Start a mysql server on port
33066
(in case you are already running another one)docker run --rm -it -d\ --name demo-mysql\ -p 33066:3306\ -e "MYSQL_RANDOM_ROOT_PASSWORD=true"\ -e "MYSQL_USER=flyway"\ -e "MYSQL_PASSWORD=3362"\ -e "MYSQL_DATABASE=demo"\ mysql:8
-
Start the application (make sure that Java 8 or 11 is used)
sbt run
-
Open the app in the browser: http://localhost:9000/. The project will be compiled and then throw an exception.
When downgrading flyway to 8.2.0
, the same setup works again.
- Edit
build.sbt
and change the flyway-play version from7.19.0
to7.17.0
"org.flywaydb" %% "flyway-play" % "7.17.0" ^^^^^^
- Start the project again
- Open http://localhost:9000/ in a browser, now everything works fine