Код: Выделить всё
Identity
| — Core
| — build.gradle.kts
| — Web
| — src
| — main
| — resources
| — application.properties
| — build.gradle.kts
| — External
| - src
| - main
| - resources
| - db
| - migration
| - .sql files
| — build.gradle.kts
| — settings.gradle.kts
Код: Выделить всё
rootProject.name = "Identity"
include("Web")
include("Core")
include("External")
Код: Выделить всё
spring.datasource.driver-class-name= org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://localhost:5432/school_staff
spring.datasource.username=keycloak
spring.datasource.password=******
Код: Выделить всё
plugins {
id("java-library")
id("org.flywaydb.flyway") version "11.0.1"
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa:3.4.0")
implementation("org.postgresql:postgresql:42.7.4")
implementation("org.flywaydb:flyway-core:11.0.1")
implementation("org.flywaydb:flyway-database-postgresql:11.0.1")
implementation("org.flywaydb:flyway-gradle-plugin:11.0.1")
}
Код: Выделить всё
./gradlew flywayMigrate
Код: Выделить всё
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :External:flywayMigrate FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':External:flywayMigrate'.
> Error occurred while executing flywayMigrate
Unable to connect to the database. Configure the url, user and password!
Подробнее здесь: https://stackoverflow.com/questions/792 ... gration-in
Мобильная версия