diff --git a/build.gradle b/build.gradle index 6c79443..7907d7f 100644 --- a/build.gradle +++ b/build.gradle @@ -92,3 +92,11 @@ configurations { kotlin { jvmToolchain(17) } + +bootRun { + // Use db-local profile by default so datasource is loaded (application-db-local.yml). + // Override with: ./gradlew bootRun --args='--spring.profiles.active=prod' + if (!project.hasProperty('spring.profiles.active')) { + args '--spring.profiles.active=db-local' + } +}