diff --git a/development.sh b/development.sh
index 5e9354b..eb79e8e 100755
--- a/development.sh
+++ b/development.sh
@@ -136,6 +136,9 @@ print_usage() {
test
Run tests locally.
+ run
+ Run the application locally.
+
stop
Stop Docker containers.
@@ -174,6 +177,10 @@ case $COMMAND in
run_tests
;;
+ run)
+ mvn spring-boot:run -Pdev
+ ;;
+
stop)
stop_all
;;
diff --git a/pom.xml b/pom.xml
index 1081600..8736e8c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -370,8 +370,8 @@
postgresql
- org.flywaydb
- flyway-core
+ org.springframework.boot
+ spring-boot-starter-flyway
org.flywaydb
diff --git a/src/test/kotlin/fi/hsl/jore4/auth/FlywayAutoConfigurationPresentTest.kt b/src/test/kotlin/fi/hsl/jore4/auth/FlywayAutoConfigurationPresentTest.kt
new file mode 100644
index 0000000..5c126a4
--- /dev/null
+++ b/src/test/kotlin/fi/hsl/jore4/auth/FlywayAutoConfigurationPresentTest.kt
@@ -0,0 +1,15 @@
+package fi.hsl.jore4.auth
+
+import org.junit.jupiter.api.Assertions.assertNotNull
+import org.junit.jupiter.api.Tag
+import org.junit.jupiter.api.Test
+
+@Tag("unitTest")
+class FlywayAutoConfigurationPresentTest {
+
+ @Test
+ fun `flyway auto-configuration class is on the classpath`() {
+ val clazz = Class.forName("org.springframework.boot.flyway.autoconfigure.FlywayAutoConfiguration")
+ assertNotNull(clazz, "FlywayAutoConfiguration must be on the classpath via spring-boot-starter-flyway")
+ }
+}