summaryrefslogtreecommitdiff
path: root/opendc-integration-jpa/build.gradle
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2017-09-28 22:48:47 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2017-09-28 22:48:47 +0200
commit681718e6e59d7b2e14fd7428daebe15647a12097 (patch)
treeaeb2a5f50c3dc645f4cd26002fa18298c10f0bb3 /opendc-integration-jpa/build.gradle
parent22547de46abf1e0ab517657e2727b0eeaddeeaa0 (diff)
Add Dockerfile for the JPA integration
This change adds a Dockerfile to the repository which will automatically launch the JPA integration.
Diffstat (limited to 'opendc-integration-jpa/build.gradle')
-rw-r--r--opendc-integration-jpa/build.gradle10
1 files changed, 10 insertions, 0 deletions
diff --git a/opendc-integration-jpa/build.gradle b/opendc-integration-jpa/build.gradle
index 4d0729b7..e5be0f46 100644
--- a/opendc-integration-jpa/build.gradle
+++ b/opendc-integration-jpa/build.gradle
@@ -80,6 +80,16 @@ repositories {
jcenter()
}
+import org.apache.tools.ant.filters.*
+
+processResources {
+ filter ReplaceTokens, tokens: [
+ 'persistence.url': project.findProperty('persistence.url') ?: '',
+ 'persistence.user': project.findProperty('persistence.user') ?: '',
+ 'persistence.password': project.findProperty('persistence.password') ?: '',
+ ]
+}
+
dependencies {
compile project(':opendc-core')
compile project(':opendc-stdlib')