Last active
March 17, 2020 20:38
-
-
Save Pinwheeler/784bdfb829154ba54072d2f307416994 to your computer and use it in GitHub Desktop.
sample build.gradle for externalizing Postgres
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
//... | |
id "org.flywaydb.flyway" version "6.3.1" | |
} | |
dependencies { | |
//... | |
implementation 'org.springframework.boot:spring-boot-starter-data-jpa' | |
implementation 'org.flywaydb:flyway-core' | |
runtimeOnly 'org.postgresql:postgresql' | |
} | |
flyway { | |
url = 'jdbc:postgresql://localhost:5432/db_name' | |
user = 'user' | |
password = 'password' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment