Skip to content

Instantly share code, notes, and snippets.

@tygern
Created April 29, 2017 21:32
Show Gist options
  • Save tygern/af90bef3cc48a7af211759101d0271a3 to your computer and use it in GitHub Desktop.
Save tygern/af90bef3cc48a7af211759101d0271a3 to your computer and use it in GitHub Desktop.
def localProperties = new Properties()
localProperties.load(project.rootProject.file("local.properties").newDataInputStream())
start.environment([
"DATASOURCE_URL": "jdbc:mysql://localhost:3306/pickles_dev",
"DATASOURCE_USER": "pickles",
"DATASOURCE_PASSWORD": localProperties.getProperty("dev.datasource.password"),
"PICKLES_URL": "http://localhost:8081",
])
test.environment([
"DATASOURCE_URL": "jdbc:mysql://localhost:3306/pickles_test",
"DATASOURCE_USER": "tester",
"DATASOURCE_PASSWORD": localProperties.getProperty("test.datasource.password"),
"PICKLES_URL": "http://localhost:7071",
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment