Skip to content

Instantly share code, notes, and snippets.

@Pinwheeler
Last active March 17, 2020 20:38
Show Gist options
  • Save Pinwheeler/784bdfb829154ba54072d2f307416994 to your computer and use it in GitHub Desktop.
Save Pinwheeler/784bdfb829154ba54072d2f307416994 to your computer and use it in GitHub Desktop.
sample build.gradle for externalizing Postgres
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