From 90086fe2d4854de22f3ea77fba5b5d118b09d7ca Mon Sep 17 00:00:00 2001 From: Justin Field Date: Mon, 12 Dec 2016 09:30:25 -0800 Subject: [PATCH] Set default values for flyway config, for travis --- build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index b552283e0..fbf8f8ee0 100644 --- a/build.gradle +++ b/build.gradle @@ -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 {