Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Set default values for flyway config, for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldju committed Dec 12, 2016
1 parent 929b6ce commit 90086fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ jar {
def config = ConfigFactory.parseFile(new File("${project.getRootDir().absolutePath}${File.separator}src${File.separator}main${File.separator}resources${File.separator}cms-local-overrides.conf"))

project.ext {
flyway.user = config.getString('JDBC.username')
flyway.password = config.getString('JDBC.password')
flyway.url = config.getString('JDBC.url')
flyway.user = config.hasPath('JDBC.username') ? config.getString('JDBC.username') : 'NOT_SET'
flyway.password = config.hasPath('JDBC.password') ? config.getString('JDBC.password') : 'NOT_SET'
flyway.url = config.hasPath('JDBC.url') ? config.getString('JDBC.url') : 'NOT_SET'
}

flyway {
Expand Down

0 comments on commit 90086fe

Please sign in to comment.